Functions

DirectInput Gamepad Devices
[Source Device Interface]

APIs to provide gamepad::SourceDevice objects based on the Microsoft DirectX DirectInput APIs. More...

Collaboration diagram for DirectInput Gamepad Devices:

Functions

smart_ptr< SourceDeviceFactory > gamepad::getDirectInputSourceDeviceFactory (void)
 Use this method to create a gamepad::SourceDeviceFactory object capable of providing SourceDevice objects from the DirectInput API.

Detailed Description

APIs to provide gamepad::SourceDevice objects based on the Microsoft DirectX DirectInput APIs.

This library uses Microsoft's DirectInput APIs as the authoritative source for gamepad events, because (presumably) this is Microsoft's best attempt to meet the needs of game programmers.

Suprisingly, DirectInput has broken support for Microsoft's own most famous controller, the XBox360 gamepad. See the wikipedia XInput entry for some technical description and possible explanations: http://en.wikipedia.org/wiki/Xinput


Function Documentation

smart_ptr< SourceDeviceFactory > gamepad::getDirectInputSourceDeviceFactory ( void   ) 

Use this method to create a gamepad::SourceDeviceFactory object capable of providing SourceDevice objects from the DirectInput API.