| Posted: 10:21am 12 Nov 2026 |
Copy link to clipboard |
 Print this post |
|
G'day, Just purchased a couple of the "Generic" gamepads for input devices on CNC machine. These are not a recognized generic device.
Now I have these setup with GamePad Configure in MM.Startup they work if plugged in on startup as well as subsequent reconnect.
So it may just be the inbuilt support mapping that has failed.
Hope this helps.
Sub mm.startup Gamepad configure 2064,1,6,1,6,5,255,255,6,4,6,0,4,192,3,192,4,64,3,64,255,255,5,4,5,5,5,7,5,6,255,255,255,255 End Sub
'prog to test joystick
Option default integer
CLS Print Chr$(27)+"[2J"+Chr$(27)+"[H"; ' clear console
If MM.Info(usb 3) <> 130 Then Print @(80,48)"Unplug / Replug Gamepad" Do :Pause 100:Loop Until MM.Info(usb 3) = 130 EndIf
Print @(80,48)"Gamepad Button States " gameint ' initialise readout
Gamepad interrupt enable 3,gameint
Do :Pause 100:Loop While Inkey$=""
Gamepad interrupt disable 3
End
Sub gameint Print @(80,60)BIN$(DEVICE(gamepad 3,b),16); End Sub
Regards, Lyle. |