From 4bfe4900b80c17702d9e2c02b1740c790537d5bd Mon Sep 17 00:00:00 2001 From: Nicholas Rodrigues Lordello Date: Thu, 29 Oct 2026 19:24:31 +0100 Subject: Add PS Vita Port Compile PICO-w for the PS Vita :tada:. Fixes some minor compiler warnings that only showed up because of the different compilation target, and makes the Makefile port system a little more opinionated. --- src/input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/input.c') diff --git a/src/input.c b/src/input.c index f85c63c..8eaf6d0 100644 --- a/src/input.c +++ b/src/input.c @@ -256,12 +256,12 @@ static int8_t scancode_to_p8scii(SDL_Scancode sc, SDL_Keymod mod) { #define PW_SCANCODE_MOD_SHIFT 9 static bool handle_key(struct pw_input *input, SDL_KeyboardEvent *event) { - if (event->scancode < 0 || event->scancode > PW_SCANCODE_MASK) { + uint32_t sc = (uint32_t)event->scancode; + if (sc > PW_SCANCODE_MASK) { // Ignore unsupported scancodes. return true; } - uint32_t sc = (uint32_t)event->scancode; if (event->down) { sc |= PW_SCANCODE_PRESSED; } -- cgit v1.2.3