fehaar / FFWD

This is the FFWD framework for XNA, that allows you to port Unity3D games to XNA for use on WP7 or XBox360 (XBLIG)
Microsoft Public License
133 stars 36 forks source link

Input.GetAxis, Input.GetKey and Input.GetJoystickNames #24

Closed Elideb closed 12 years ago

Elideb commented 12 years ago

Fix for issue #22 (implement default GetAxis) and partial fix for #19 (support Xbox360 controllers).

Implemented default behaviour for GetAxis: Horizontal/Vertical: Left stick or WASD (PC). Left stick (Xbox, unless MoveWithRightThumbStick = true) Horizontal2/Vertical2: Right stick or Up/Down/Left/Right (PC). Right stick (Xbox, unless MoveWithRightThumbStick = true)

Added GetKey with default behaviour and GetJoystickNames (actually, returns joysticks types; I cannot find a way to get names from GamePad).

I haven't tested the behaviour on an Xbox yet, but I can't see a reason why it shouldn't work. I'll verify as soon as I renew my App Hub membership.

fehaar commented 12 years ago

Perfect Elideb. Thank you very much.