try that again

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4571 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2013-12-20 11:26:28 +00:00
parent 2a030268c5
commit 1f4a0cb80a
2 changed files with 40 additions and 40 deletions

View file

@ -33,6 +33,6 @@ int emscriptenfte_setupcanvas(
void(*Resized)(int newwidth, int newheight),
void(*Mouse)(int devid,int abs,float x,float y,float z,float size),
void(*Button)(int devid, int down, int mbutton),
void(*Keyboard)(int devid, int down, int keycode, int unicode)
int(*Keyboard)(int devid, int down, int keycode, int unicode)
);

View file

@ -73,8 +73,8 @@ static int DOM_KeyEvent(int devid, int down, int scan, int uni)
//Preventing the browser from leaving the page etc should NOT mean I can no longer get ascii/unicode values, only that the browser stops trying to do something random due to the event.
//If you are the person that decreed that this is the holy way, then please castrate yourself now.
if (scan < ' ' || scan >= 127)
return TRUE;
return FALSE;
return true;
return false;
}
static void DOM_ButtonEvent(int devid, int down, int button)
{