Skip to content
Snippets Groups Projects
Commit f1f8a1e8 authored by Rupert Hausberger's avatar Rupert Hausberger
Browse files

update 0.9.0

parent 470f65cc
No related branches found
No related tags found
No related merge requests found
......@@ -587,8 +587,17 @@ function ScriptedAmigaEmulator() {
};
this.mute = function(mute) {
this.audio.mute(mute);
return SAEE_None;
if (this.running) {
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) {
......
......@@ -575,6 +575,7 @@ function SAEO_Config() {
id: "",
enabled: false,
//driver: 0,
hideCursor: false,
scandoubler: false, //gfx_scandoubler
framerate: 0, //gfx_framerate
......@@ -1075,6 +1076,7 @@ function SAEO_Configuration() {
p.video.id = "video";
p.video.enabled = true;
p.video.hideCursor = true;
p.video.scandoubler = false;
p.video.framerate = 1;
p.video.hresolution = SAEC_Config_Video_HResolution_HiRes;
......
......@@ -47,15 +47,19 @@ function SAEO_Mouse() {
};
this.mouseover = function(e) {
//SAER.video.hideCursor(1);
if (SAEV_config.video.hideCursor)
SAER.video.hideCursor(true);
this.mousemove(e);
lx = cx;
ly = cy;
};
this.mouseout = function(e) {
//SAER.video.hideCursor(0);
this.mouseup(e);
if (SAEV_config.video.hideCursor)
SAER.video.hideCursor(false);
};
this.mousemove = function(e) {
......
......@@ -2017,6 +2017,11 @@ function SAEO_Video() {
DirectDraw_ReleaseDC(hdc);
}*/
this.hideCursor = function(hide) {
if (hAmigaWnd !== null && hAmigaWnd.shown)
hAmigaWnd.canvas.style.cursor = hide ? "none" : "auto";
}
/*-----------------------------------------------------------------------*/
//var flushymin = 0, flushymax = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment