1
Finished Plugins for Download / Re: USB JoyPad and game device plugin - New Version 2.0
« on: March 22, 2017, 01:18:40 PM »
Not sure if anyone has a suggestion, but I'm confused.
The joypad plugin is working because I can decode the buttons and get appropriate messages in from the script, but the DoOEMButton(311) commands are ignored.
Within the VBEditor, if I run the script, the DoOEMButton(311) or DoOEMButton(312) actually move the Z-axis as intended.
I worked around this for the Alt+Up/Down buttons, by reading the Jog Increment Size DRO (828 index) and the current Z-axis DRO (802 index) and inserted code to move the Z up or down by that amount. Weird to have to work around this to achieve the result, but it's working.
I'm not sure how to work around continuous jogging to make it work though because I would need to turn the jogging off when the button is released, but the joypad script is only called when a button is pushed.
Anyone advice would be appreciated a bunch.
Best Regards
-Josh
The joypad plugin is working because I can decode the buttons and get appropriate messages in from the script, but the DoOEMButton(311) commands are ignored.
Within the VBEditor, if I run the script, the DoOEMButton(311) or DoOEMButton(312) actually move the Z-axis as intended.
I worked around this for the Alt+Up/Down buttons, by reading the Jog Increment Size DRO (828 index) and the current Z-axis DRO (802 index) and inserted code to move the Z up or down by that amount. Weird to have to work around this to achieve the result, but it's working.
I'm not sure how to work around continuous jogging to make it work though because I would need to turn the jogging off when the button is released, but the joypad script is only called when a button is pushed.
Anyone advice would be appreciated a bunch.
Best Regards
-Josh