Sponsored By

This details the framework’s capability for FPS type camera movement using the mouse and keyboard (Mouse look), as well as Xinput (XBOX360 and newer Joysticks) and DirectInput (for older joysticks) using yaw, pitch, roll and x-z movement vectors.

Game Developer, Staff

November 28, 2011

1 Min Read

Mouselook Controller and Keyboard Input (XInput and DirectInput)

MOUSELOOK_JOYSTICK(XINPUT_DIRECTINPUT)

This details the framework’s capability for FPS type camera movement using the mouse and keyboard (Mouse look), as well as Xinput (XBOX360 and newer Joysticks) and DirectInput (for older joysticks) using yaw, pitch, roll and x-z movement vectors.

Previous Demonstration:

The AlwynD3Dframework will automatically detect and use a single controller if and when it is plugged in and out via USB, this is the default behaviour as it is currently, and is geared for single player, PC FPS camera type movement.

This demonstration has no pictures or sample code as the next demonstrations will contain the same code, and when a controller is plugged in, the x and z rotation axis (analogue sticks) may be used to move around, or the WSAD and mouse look for keyboard and mouse. XBOX360 (Xinput capable controllers have not been tested yet at time of this post, only DirectInput capable joysticks, with Dual analogue sticks.)

Read more about:

Blogs
Daily news, dev blogs, and stories from Game Developer straight to your inbox

You May Also Like