Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Windows / Tutorial: have XBOX360 controller work with windows tier 2 AGK

Author
Message
sovr
9
Years of Service
User Offline
Joined: 2nd Jan 2010
Location: USA
Posted: 3rd Jan 2013 22:01 Edited at: 3rd Jan 2013 22:05
Hi everyone! I have worked hard for getting this to work, but finally figured this out! here is code to add in your agk code to have XBOX controller interaction. here is code to add in your template.h:




now functions to add in your template.cpp:




the other buttons for the xbox controller are also Y,B and X in replacement of the A in XINPUT_GAMEPAD_. You can also access the joysticks by doing the GETState().Gamepad.sThumbLX/sThumbLY/sThumbRX/sThumbRY. I hope this small tutorial helped!


edit: here is a link for all of the buttons:
http://msdn.microsoft.com/en-us/library/windows/desktop/microsoft.directx_sdk.reference.xinput_gamepad(v=vs.85).aspx

hello there!

Login to post a reply

Server time is: 2019-12-10 15:30:29
Your offset time is: 2019-12-10 15:30:29