informa
/
Programming
Blogs

Mouselook , Controllers freelook using 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.

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.
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.)

Latest Jobs

Sucker Punch Productions

Bellevue, Washington
08.27.21
Combat Designer

Xbox Graphics

Redmond, Washington
08.27.21
Senior Software Engineer: GPU Compilers

Insomniac Games

Burbank, California
08.27.21
Systems Designer

Deep Silver Volition

Champaign, Illinois
08.27.21
Senior Environment Artist
More Jobs   

CONNECT WITH US

Register for a
Subscribe to
Follow us

Game Developer Account

Game Developer Newsletter

@gamedevdotcom

Register for a

Game Developer Account

Gain full access to resources (events, white paper, webinars, reports, etc)
Single sign-on to all Informa products

Register
Subscribe to

Game Developer Newsletter

Get daily Game Developer top stories every morning straight into your inbox

Subscribe
Follow us

@gamedevdotcom

Follow us @gamedevdotcom to stay up-to-date with the latest news & insider information about events & more