Skip to content

Commit

Permalink
fix bundled input display script's controller detection
Browse files Browse the repository at this point in the history
surely this breaks nothing
  • Loading branch information
Morilli committed Dec 20, 2024
1 parent 18ef28c commit 4dc0ec5
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions Assets/Lua/Input_Display.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,20 @@ enable = {true,true,true,true,true,true,true,true,true,true,true,true}
--------------------------------------------------------------------------------

-- Console Interface --
-- DO NOT CHANGE THIS, IS USED FOR DETECTION!

do
pluged = {joypad.get(1)['Up'] ~= nil,
joypad.get( 2)['Up'] ~= nil,
joypad.get( 3)['Up'] ~= nil,
joypad.get( 4)['Up'] ~= nil,
joypad.get( 5)['Up'] ~= nil,
joypad.get( 6)['Up'] ~= nil,
joypad.get( 7)['Up'] ~= nil,
joypad.get( 8)['Up'] ~= nil,
joypad.get( 9)['Up'] ~= nil,
joypad.get(10)['Up'] ~= nil,
joypad.get(11)['Up'] ~= nil,
joypad.get(12)['Up'] ~= nil}
pluged = {next(joypad.get(1)) ~= nil,
next(joypad.get( 2)) ~= nil,
next(joypad.get( 3)) ~= nil,
next(joypad.get( 4)) ~= nil,
next(joypad.get( 5)) ~= nil,
next(joypad.get( 6)) ~= nil,
next(joypad.get( 7)) ~= nil,
next(joypad.get( 8)) ~= nil,
next(joypad.get( 9)) ~= nil,
next(joypad.get(10)) ~= nil,
next(joypad.get(11)) ~= nil,
next(joypad.get(12)) ~= nil}

sys = emu.getsystemid()
if sys == 'Game Gear' then sys = 'GG' end -- DualGG is weird
Expand Down

0 comments on commit 4dc0ec5

Please sign in to comment.