Changeset 9230 for 2017


Ignore:
Timestamp:
2017-07-28 13:04:07 (21 months ago)
Author:
npo17_65
Message:

Xbox controller works

Location:
2017/30/HugoE/HanniAndHoo/HanniAndHoo/HanniAndHoo
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • 2017/30/HugoE/HanniAndHoo/HanniAndHoo/HanniAndHoo/HanniAndHoo.cs

    r9222 r9230  
    152152        Keyboard.Listen(Key.Right, ButtonState.Down, Kavely, null, Hoo, 250.0); 
    153153        Keyboard.Listen(Key.Left, ButtonState.Down, Kavely, null, Hoo, -250.0); 
     154 
     155 
    154156        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
    155157 
     158 
     159        ControllerOne.Listen(Button.A, ButtonState.Pressed, Hyppy, null, Hanni, 1000.0); 
     160        ControllerOne.Listen(Button.DPadRight, ButtonState.Down, Kavely, null, Hanni, 500.0); 
     161        ControllerOne.Listen(Button.DPadLeft, ButtonState.Down, Kavely, null, Hanni, -500.0); 
     162 
     163 
     164        ControllerTwo.Listen(Button.A, ButtonState.Down, Hyppy, null, Hoo, 500.0); 
     165        ControllerTwo.Listen(Button.DPadRight, ButtonState.Down, Kavely, null, Hoo, 500.0); 
     166        ControllerTwo.Listen(Button.DPadLeft, ButtonState.Down, Kavely, null, Hoo, -500.0);         
    156167    } 
    157168    void LuoKentta() 
Note: See TracChangeset for help on using the changeset viewer.