Menu
  • HOME
  • TAGS

Manually invoking mouse clicks XNA

c#,input,xna,gamepad

Doing this in XNA is the same way as normal C#. To use the code below, make sure you are using the System.Runtime.InteropServices; namespace. Disclaimer: I would consider this somewhat "dirty" code, it uses user32.dll to invoke the click in Windows, but it is really the only way. (Adapted from...

Game pad Menu Navigation Programmatically

c++,objective-c,menu,navigation,gamepad

Make a collection of buttons For each button, make each dpad direction optionally map to a new button Make each button selection optionally map to a new collection Done Hard-coding is one way to map one piece of data to another. Or a file that describes it. Or static...