Skip to content

Commit

Permalink
input-www: Fix format string warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Shishkin <[email protected]>
  • Loading branch information
virtuoso committed Sep 24, 2024
1 parent 8fd6898 commit 5b958dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/input-www.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static EM_BOOL key_callback(int eventType, const EmscriptenKeyboardEvent *e, voi
}

memset(&mi, 0, sizeof(mi));
trace("%s, key: \"%s\", code: \"%s\", location: %lu,%s%s%s%s repeat: %d, locale: \"%s\", char: \"%s\", charCode: %lu, keyCode: %lu, which: %lu\n",
trace("%s, key: \"%s\", code: \"%s\", location: %u,%s%s%s%s repeat: %d, locale: \"%s\", char: \"%s\", charCode: %u, keyCode: %u, which: %u\n",
emscripten_event_type_to_string(eventType), e->key, e->code, e->location,
e->ctrlKey ? " CTRL" : "", e->shiftKey ? " SHIFT" : "", e->altKey ? " ALT" : "", e->metaKey ? " META" : "",
e->repeat, e->locale, e->charValue, e->charCode, e->keyCode, e->which);
Expand Down Expand Up @@ -250,7 +250,7 @@ static EM_BOOL touch_callback(int type, const EmscriptenTouchEvent *e, void *use

static EM_BOOL gamepad_callback(int type, const EmscriptenGamepadEvent *e, void *data)
{
dbg("### GAMEPAD event: connected: %d index: %ld nr_axes: %d nr_buttons: %d id: '%s' mapping: '%s'\n",
dbg("### GAMEPAD event: connected: %d index: %d nr_axes: %d nr_buttons: %d id: '%s' mapping: '%s'\n",
e->connected, e->index, e->numAxes, e->numButtons, e->id, e->mapping);

joystick_name_update(e->index, e->connected ? e->id : NULL);
Expand Down

0 comments on commit 5b958dd

Please sign in to comment.