Original Post
Hey guys,
I'm trying to add support for Xbox 360 controllers into some of my games and am having trouble getting the API to work with Code::Blocks. I have downloaded the latest version of the DirectX SDK and have attempted to you the XInput.h, XInput.lib, and XInput9_1_0.dll files included in the SDK, but I get errors in the form of "error: `__in' was not declared in this scope" in the XInput.h file.
Anyway, can anyone help me to get the Xbox 360 controller API working? If so, I can take it from there. I will absolutely not use Visual Studio and would like to include the API files along with program so that it is easily portable to many different computers without having to install the SDK.
Thanks.
I'm trying to add support for Xbox 360 controllers into some of my games and am having trouble getting the API to work with Code::Blocks. I have downloaded the latest version of the DirectX SDK and have attempted to you the XInput.h, XInput.lib, and XInput9_1_0.dll files included in the SDK, but I get errors in the form of "error: `__in' was not declared in this scope" in the XInput.h file.
Anyway, can anyone help me to get the Xbox 360 controller API working? If so, I can take it from there. I will absolutely not use Visual Studio and would like to include the API files along with program so that it is easily portable to many different computers without having to install the SDK.
Thanks.