Posted By: Blink
help with adding keys... - 02/25/10 23:47
ok, I have a flashlight script that uses two button to trigger it. the f key on a pc keyboard and the x-box 360 controller button joy_5. it works fine.
I want to do the same for other codes i have with no success. i want to use the keyboard and the the 360 controller to trigger these other things as well. when i try to add the other keys, I get errors. what can i do? i want to have the option to use either the mouse and keyboard or the 360 controller buttons.
Code:
while (energy > 0 && key_f + joy_5== 1)
I want to do the same for other codes i have with no success. i want to use the keyboard and the the 360 controller to trigger these other things as well. when i try to add the other keys, I get errors. what can i do? i want to have the option to use either the mouse and keyboard or the 360 controller buttons.