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)
|
function keyname_extd(key)
|
||||||
{
|
{
|
||||||
if (typeof key === 'string') return key;
|
if (!parseInt(key)) return key;
|
||||||
|
|
||||||
if (key > 289 && key < 302) {
|
if (key > 289 && key < 302) {
|
||||||
var num = key-289;
|
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 *dumpout = NULL;
|
||||||
static FILE *cycleout = NULL;
|
static FILE *cycleout = NULL;
|
||||||
|
|
||||||
void quickjs_set_dumpout(FILE *f)
|
void quickjs_set_dumpout(FILE *f) { dumpout = f; }
|
||||||
{
|
|
||||||
dumpout = f;
|
|
||||||
}
|
|
||||||
|
|
||||||
void quickjs_set_cycleout(FILE *f) { cycleout = f; }
|
void quickjs_set_cycleout(FILE *f) { cycleout = f; }
|
||||||
|
|
||||||
/* dump object free */
|
/* dump object free */
|
||||||
|
|
|
@ -110,7 +110,7 @@ void c_clean() {
|
||||||
|
|
||||||
void c_event(const sapp_event *e)
|
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];
|
char lcfmt[5];
|
||||||
switch (e->type) {
|
switch (e->type) {
|
||||||
case SAPP_EVENTTYPE_MOUSE_MOVE:
|
case SAPP_EVENTTYPE_MOUSE_MOVE:
|
||||||
|
|
Loading…
Reference in a new issue