fix input down

This commit is contained in:
John Alanbrook 2024-09-01 16:16:35 -05:00
parent ef0a59f489
commit 99bd0091f9
3 changed files with 4 additions and 8 deletions

View file

@ -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;

View file

@ -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 */

View file

@ -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: