Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lua scripting, joypad.set #104

Open
GoogleCodeExporter opened this issue Mar 31, 2015 · 2 comments
Open

lua scripting, joypad.set #104

GoogleCodeExporter opened this issue Mar 31, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

It works for me without problems with emu.registerbefore()

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

  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant