fix input down
This commit is contained in:
parent
ef0a59f489
commit
99bd0091f9
|
@ -40,7 +40,7 @@ function keycode(name) { return charCodeAt(name); }
|
|||
|
||||
function keyname_extd(key)
|
||||
{
|
||||
if (typeof key === 'string') return key;
|
||||
if (!parseInt(key)) return key;
|
||||
|
||||
if (key > 289 && key < 302) {
|
||||
var num = key-289;
|
||||
|
|
6
source/engine/thirdparty/quickjs/quickjs.c
vendored
6
source/engine/thirdparty/quickjs/quickjs.c
vendored
|
@ -84,11 +84,7 @@
|
|||
static FILE *dumpout = NULL;
|
||||
static FILE *cycleout = NULL;
|
||||
|
||||
void quickjs_set_dumpout(FILE *f)
|
||||
{
|
||||
dumpout = f;
|
||||
}
|
||||
|
||||
void quickjs_set_dumpout(FILE *f) { dumpout = f; }
|
||||
void quickjs_set_cycleout(FILE *f) { cycleout = f; }
|
||||
|
||||
/* dump object free */
|
||||
|
|
|
@ -110,7 +110,7 @@ void c_clean() {
|
|||
|
||||
void c_event(const sapp_event *e)
|
||||
{
|
||||
if (gui_input(e)) return;
|
||||
if (gui_input(e) && e->type != SAPP_EVENTTYPE_KEY_UP) return;
|
||||
char lcfmt[5];
|
||||
switch (e->type) {
|
||||
case SAPP_EVENTTYPE_MOUSE_MOVE:
|
||||
|
|
Loading…
Reference in a new issue