I am trying to map joystick buttons to mouse.wheelUp and mouse.wheelDown which works fine except that the second line of code seems to block/disable the first.
Here's an example mapping keyboard keys to the mouse wheel. Each line works by itself but if you have both in the script, then the first one doesn't work.
Code: Select all
mouse.wheelUp = keyboard.getPressed(Key.W)
mouse.wheelDown = keyboard.getPressed(Key.S)
Any ideas?