update 0.9.0

This commit is contained in:
Rupert Hausberger 2016-08-06 02:19:59 +02:00
commit f1f8a1e846
4 changed files with 24 additions and 4 deletions

View file

@ -587,8 +587,17 @@ function ScriptedAmigaEmulator() {
}; };
this.mute = function(mute) { this.mute = function(mute) {
this.audio.mute(mute); if (this.running) {
return SAEE_None; this.audio.mute(mute);
if (mute)
SAEF_log("sae.mute() audio muted");
else
SAEF_log("sae.mute() playing audio");
return SAEE_None;
} else {
SAEF_warn("sae.mute() emulation not running");
return SAEE_NotRunning;
}
}; };
this.keyPress = function(e, down) { this.keyPress = function(e, down) {

View file

@ -575,6 +575,7 @@ function SAEO_Config() {
id: "", id: "",
enabled: false, enabled: false,
//driver: 0, //driver: 0,
hideCursor: false,
scandoubler: false, //gfx_scandoubler scandoubler: false, //gfx_scandoubler
framerate: 0, //gfx_framerate framerate: 0, //gfx_framerate
@ -1075,6 +1076,7 @@ function SAEO_Configuration() {
p.video.id = "video"; p.video.id = "video";
p.video.enabled = true; p.video.enabled = true;
p.video.hideCursor = true;
p.video.scandoubler = false; p.video.scandoubler = false;
p.video.framerate = 1; p.video.framerate = 1;
p.video.hresolution = SAEC_Config_Video_HResolution_HiRes; p.video.hresolution = SAEC_Config_Video_HResolution_HiRes;

View file

@ -47,15 +47,19 @@ function SAEO_Mouse() {
}; };
this.mouseover = function(e) { this.mouseover = function(e) {
//SAER.video.hideCursor(1); if (SAEV_config.video.hideCursor)
SAER.video.hideCursor(true);
this.mousemove(e); this.mousemove(e);
lx = cx; lx = cx;
ly = cy; ly = cy;
}; };
this.mouseout = function(e) { this.mouseout = function(e) {
//SAER.video.hideCursor(0);
this.mouseup(e); this.mouseup(e);
if (SAEV_config.video.hideCursor)
SAER.video.hideCursor(false);
}; };
this.mousemove = function(e) { this.mousemove = function(e) {

View file

@ -2017,6 +2017,11 @@ function SAEO_Video() {
DirectDraw_ReleaseDC(hdc); DirectDraw_ReleaseDC(hdc);
}*/ }*/
this.hideCursor = function(hide) {
if (hAmigaWnd !== null && hAmigaWnd.shown)
hAmigaWnd.canvas.style.cursor = hide ? "none" : "auto";
}
/*-----------------------------------------------------------------------*/ /*-----------------------------------------------------------------------*/
//var flushymin = 0, flushymax = 0; //var flushymin = 0, flushymax = 0;