- Title: Joystick and Joypad Example
- Description: Plug in your usb Joystick/pad and see all the values as you push buttons, move the sticks, etc. Also a simple arrow object can be moved around with one stick and fires bullets with the other, ala Robotron
- GM Version: GM8
- Registered: yes but delete a couple lines and can use unregged
- File Type: .gmk
- File Size: 287kb
- File Link: http://s98060354.onl...pad_Example.gmk
I have an axis pad so that's what I used as an example. I'd be interested to know how this code works with other pads.
Also I am wanting to expand the way the program reads the analog sticks. It currently just reduces the analog values to on/off so the movement is one speed and the standard eight directions but could be coded to allow you to shoot or move at any angle and slower or faster depending on how hard the sticks are pressed.
Screenshot of Joystick and Joypad example