Fixed keycode issue and cleaned up code

This commit is contained in:
JJ Bliss
2026-05-05 16:13:46 -04:00
parent 34defe4bbe
commit 9ef1543cd0
2 changed files with 26 additions and 26 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ use uxn;
def WIDTH = 640;
def HEIGHT = 480;
def DEFAULT_SCALE = 3;
def DEFAULT_SCALE = 1;
def MAX_CONSOLE_INPUT = 0x1000;
export fn main() void = {
@@ -284,7 +284,7 @@ export fn main() void = {
const scancode = ev.key.scancode;
const mods = ev.key.mod;
const sym = sdl3::GetKeyFromScancode(scancode,mods,false);
if( sym < sdl3::K_F13){
if( sym < 0xFF){
uxn::set_key_down(sym: u8,state);
};
// Handle F Keys