orange-van-60470
02/26/2023, 1:56 PMorange-van-60470
02/26/2023, 1:59 PMorange-van-60470
02/26/2023, 2:00 PMearly-butcher-76809
02/26/2023, 2:07 PMbright-gpu-74537
02/26/2023, 2:09 PMbright-gpu-74537
02/26/2023, 2:09 PMearly-butcher-76809
02/26/2023, 2:11 PMearly-butcher-76809
02/26/2023, 2:12 PMbright-gpu-74537
02/26/2023, 2:12 PMearly-butcher-76809
02/26/2023, 2:13 PMbright-gpu-74537
02/26/2023, 2:13 PMbright-gpu-74537
02/26/2023, 2:13 PMearly-butcher-76809
02/26/2023, 2:13 PMbright-gpu-74537
02/26/2023, 2:14 PMearly-butcher-76809
02/26/2023, 2:14 PMearly-butcher-76809
02/26/2023, 2:15 PMbright-gpu-74537
02/26/2023, 2:15 PMbumpy-engineer-49082
02/26/2023, 2:17 PMbright-gpu-74537
02/26/2023, 2:18 PMbumpy-engineer-49082
02/26/2023, 2:23 PMbright-gpu-74537
02/26/2023, 2:24 PMbumpy-engineer-49082
02/26/2023, 2:27 PMbright-gpu-74537
02/26/2023, 2:28 PMbumpy-engineer-49082
02/26/2023, 2:29 PMbright-gpu-74537
02/26/2023, 2:29 PMbright-gpu-74537
02/26/2023, 2:29 PMrefined-greece-48002
02/26/2023, 2:35 PMhaxe
Window.getInstance().addEventTarget(handleKeys);
where handleKeys is e:hxd.Event->Void
From withing there I can switch on e.kind
, which is a hxd.Event.EventKind
enum, to respond to its values EKeyDown
and EKeyUp
It also has e.keyCode
which looks to be the same as haxeui version.
ie
haxe
function handleKeys(e:Event){
switch(e.kind){
case EKeyDown:
//switch on e.keyCode
case EKeyUp:
//switch on e.keyCode
default:
}
}
bright-gpu-74537
02/26/2023, 2:36 PMearly-butcher-76809
02/26/2023, 2:37 PM