Fixed keycode issue and cleaned up code
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user