Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sergystepanov committed Feb 7, 2024
1 parent 6e29b8e commit b0877b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/worker/caged/libretro/nanoarch/nanoarch.go
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ func coreInputState(port C.unsigned, device C.unsigned, index C.unsigned, id C.u

switch device {
case C.RETRO_DEVICE_JOYPAD:
return Nan0.Handlers.OnKeyPress(uint(port), int(id)) // 0 1
return C.int16_t(Nan0.Handlers.OnKeyPress(uint(port), int(id))) // 0 1
case C.RETRO_DEVICE_ANALOG:
switch index {
case C.RETRO_DEVICE_INDEX_ANALOG_LEFT:
Expand Down

0 comments on commit b0877b2

Please sign in to comment.