Mitchell931993

Joystick code

Sep 30th, 2013
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. if(Delta(Keyboard.A) OR Delta(Keyboard.D)){
  2. PPJoy.Analog2 = 0;
  3. if(Pressed(Keyboard.A)){
  4. PPJoy.Analog2 = -.99;
  5. }
  6. if(Pressed(Keyboard.D)){
  7. PPJoy.Analog2 = .99;
  8. }
  9. }
  10. if(Delta(Keyboard.W) OR Delta(Keyboard.S)){
  11. PPJoy.Analog3 = 0;
  12. if(Pressed(Keyboard.S)){
  13. PPJoy.Analog3 = -.99;
  14. }
  15. if(Pressed(Keyboard.W)){
  16. PPJoy.Analog3 = .99;
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment