nzbsolo Posted May 19, 2017 Share Posted May 19, 2017 Working out the bugs in my cab, I have one of the x-arcade tanksticks (heavily modded). My problem is that the mouse buttons are still on in game. On some emulators this can cause functions of the emulator to stop or break by bringing up menus, causing the cab to stop. Does anybody know an elegant solution to disabling the mouse, or remapping the mouse to buttons that would effectively stop the mouse buttons from being able to input? Link to comment Share on other sites More sharing options...
Avar Posted May 19, 2017 Share Posted May 19, 2017 Still happening with Hide Cursor set to true in RLUI? Link to comment Share on other sites More sharing options...
Metalzoic Posted May 20, 2017 Share Posted May 20, 2017 Afraid I don't know man. I've never messed with any of the X-arcade stuff. There have been quite a few threads of people having issues with them though. Link to comment Share on other sites More sharing options...
nzbsolo Posted May 22, 2017 Author Share Posted May 22, 2017 Hiding the mouse cursor does not disable its functionality. The peeps at work while professional, bang at the machines like a bunch of angry monkeys. Emulators like nestopia use the right button to bring up the menu, and break emulation. No bueno. I'm probably going to have to write a powershell script that disables mouse input at the start of games, then on exit re-enables them. Didn't want to get all scripty, but what can ya do? I'll post what I write here if any of you guys want to use it. Link to comment Share on other sites More sharing options...
nzbsolo Posted May 23, 2017 Author Share Posted May 23, 2017 I'll probably be using this: https://blog.kulman.sk/enabling-and-disabling-hardware-devices-with-powershell/ I'll let you know how it goes. Link to comment Share on other sites More sharing options...
jfp Posted May 23, 2017 Share Posted May 23, 2017 if its anything like a jamma then use sharpkeys to change the alt key... as alt and space brings up menus Link to comment Share on other sites More sharing options...
nzbsolo Posted May 25, 2017 Author Share Posted May 25, 2017 So I figured it out. I had to go the scripting route, since there is no application that will do this for me. I'll post the exact script if anybody wants it. But here is the high level description: 1) Download devcon, it allows for the command-line enabling/disabling of hardware devices in windows. 2) Set the devcon pathing in windows environment so you can run it from command prompt/powershell anywhere (not necessary but it helps with the coding bit). 3) I wrote a script that does a get-process check. It checks for demul, nestopia, and daphne in a loop, waiting for an emulator to start. 4) If one of those emulators is active, it will trigger the devcon to disable the mouse. 5) It will loop for infinity doing a get-process check that recycles every 5 seconds checking if the emulator is still active. 6) If the emulator is no longer active, it will run the re-enable script, enabling the device within windows. 7) It then goes back to search mode, waiting for another emulator to turn on. The script itself has to run in administrator mode. It also runs without a window or any focus stealing effects (besides at startup which I am working on). Link to comment Share on other sites More sharing options...
Metalzoic Posted May 26, 2017 Share Posted May 26, 2017 Devcon is pretty useful. It's what I use it in a script to enable/disable the Vjoy drivers for specific games to keep it from conflicting with everything else. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.