Skip to content

Commit

Permalink
Add missing onKeyPrecise events dispatcher.
Browse files Browse the repository at this point in the history
  • Loading branch information
EliteMasterEric authored and ninjamuffin99 committed Nov 1, 2024
1 parent 59f1e92 commit 350a98a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lime/_internal/backend/native/NativeApplication.hx
Original file line number Diff line number Diff line change
Expand Up @@ -263,14 +263,17 @@ class NativeApplication
var int32:Float = keyEventInfo.keyCode;
var keyCode:KeyCode = Std.int(int32);
var modifier:KeyModifier = keyEventInfo.modifier;
var timestamp = keyEventInfo.timestamp;

switch (type)
{
case KEY_DOWN:
window.onKeyDown.dispatch(keyCode, modifier);
window.onKeyDownPrecise.dispatch(keyCode, modifier, timestamp);

case KEY_UP:
window.onKeyUp.dispatch(keyCode, modifier);
window.onKeyUpPrecise.dispatch(keyCode, modifier, timestamp);
}

#if (windows || linux)
Expand Down

0 comments on commit 350a98a

Please sign in to comment.