Jump to content


Photo

Gamepad Mouse Simulation


  • Please log in to reply
No replies to this topic

#1 RithiX

RithiX

    GMC Member

  • New Member
  • 65 posts

Posted 18 April 2009 - 03:46 AM

Gamepad Mouse Control

This is a small application I did very quickly which allows you to control your mouse with your gamepad or Xbox 360 controller. You can also simulate left and right mouse button clicking. So far it is compatible with just about everything.
On most gamepads use Button 3 for left click and Button 2 for right click.

Known Bugs:
- By clicking left and right at the same time, even though the code is not run, sometimes (and I quote sometimes alot because its basically random) the game will freeze and your desktop will turn into an opaque image until you ALT-TAB back over to the window.

DLL's used (for the DIY'ers):
- This project uses the opaque windows DLL, the Windows dll, and tr.dll. Combined I am able to simulate a click in the GM game window then set the parent to -1 making the click really simulate on the window behind. This may lag on Vista as it has been untested with the Aero interface.

Downloads:
http://www.mediafire...amepadMouse.zip
Please note that to close the application you have to ALT+TAB into it then press escape.

Regards,

~RithiX
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users