EmulatorArchive / gens-rerecording

Automatically exported from code.google.com/p/gens-rerecording
0 stars 0 forks source link

lua scripting, joypad.set #104

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create sample lua script
2. Try to set joypad values of X,Y,Z with joypad.set({X = true})
3. Buttons wont be pressed

Digging into the problem i've ended up debuggin joy_set function in 
luascript.cpp:2023. The problem is caused by shifting (long long)1 and 
assigning the result to variable with 'int' type. Changing type of the 
variables 'input' and 'mask' fixed the problem.

Original issue reported on code.google.com by alexey.a...@gmail.com on 11 Apr 2013 at 5:31

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
It works for me without problems with emu.registerbefore()

Original comment by feykomylce on 29 Sep 2013 at 4:21