diff --git a/source/modules/games/GCBE7D-0.lua b/source/modules/games/GCBE7D-0.lua new file mode 100644 index 0000000..eb97a89 --- /dev/null +++ b/source/modules/games/GCBE7D-0.lua @@ -0,0 +1,20 @@ +-- Crash Bandicoot:The Wrath of Cortex (NTSC-U v1.0) + +local core = require("games.core") + +local game = core.newGame(0x803D2214) + +function game.translateJoyStick(x, y) + x = x/56 + y = y/56 + return x, y +end + +function game.translateCStick(x, y) + print(x) + x = x/100 + y = y/100 + return x, y +end + +return game diff --git a/source/modules/games/GIHE78-0.lua b/source/modules/games/GIHE78-0.lua index 66dd761..76f6478 100644 --- a/source/modules/games/GIHE78-0.lua +++ b/source/modules/games/GIHE78-0.lua @@ -2,4 +2,4 @@ local core = require("games.core") -return core.newGame(0x801AD440) \ No newline at end of file +return core.newGame(0x801AD440)