User Tools

Site Tools


Adding DirectX controller support

Assuming you already setup the GamepadManager just add:

//near the top of App.cpp
#include "Gamepad/GamepadProviderDirectX.h"

//Add this to actually init the gamepad(s):

	GetGamepadManager()->AddProvider(new GamepadProviderDirectX); //use directx joysticks

Oh, you'll need to link against DirectX of course, specifically dinput8.lib and dxguid.lib. Will work on directX 8 and newer I believe.

proton/gamepadmanager_directx.txt · Last modified: 2012/07/07 03:08 by seth