XboxKeyboardMouse
XboxKeyboardMouse copied to clipboard
Map keys to mouse1/mouse2?
Hi.
Thanks for this awesome app.
Im a very old gamer (pre-2000) and I've always used mouse1=forward, mouse2=back. Nowadays people use WASD but im not used to it.
Is there any way to do it? The layout configurator wont allow me Thanks.
Mouse button binding is not yet flexible. (In code, TranslateMouse has MouseButtonsInput hard-coded to turn mouse button state into left/right triggers.) This is a good idea for a feature though, to be able to customize what the mouse buttons do.
Making character move forwards in modern console games would generally be from analog stick positions. So in your particular case, it sounds like we'd need the ability to map mouse button 1 down/up to analog stick tilted full up/zeroed and then another mouse button 2 down to the same analog stick but tilted full down/zeroed. The problem is, if they both modify the same axis, without some significant care in the approach for dynamic controls, probably just the last one would win so you'd never be able to move forward, or you'd never be able to move back. If someone wants to tackle this code, you'll need to approach this problem space thoughtfully.
I'm using your software for a game bot neural network which runs in the background but I cannot use my mouse for normal PC use because it affects it
@Committing Have you considered writing direct simulation code with SimWinGamePad? I think the Xbox app still requires to be in focus to receive the controller input (whether simulated or real) no matter what approach you take with it. So you might still not be able to use the PC for very much at the same time. XboxKeyboardMouse is great for its designed purpose, but you might be adopting an extra layer unnecessary for such automation intents.
@Committing Have you considered writing direct simulation code with SimWinGamePad? I think the Xbox app still requires to be in focus to receive the controller input (whether simulated or real) no matter what approach you take with it. So you might still not be able to use the PC for very much at the same time. XboxKeyboardMouse is great for its designed purpose, but you might be adopting an extra layer unnecessary for such automation intents.
Thanks for the link - I'll check it out right now! I am using Python at the moment for this.
When using a keyboard/mouse this particular game requires focus but doesn't require focus when tabbed out if coming from a controller virtual or otherwise.
I agree it is another layer of seemingly unnecessary complexity but there have been many specific issues that have lead me down the path to using your software. It has however been very handy/convenient for me, great work! I'm going to set up the bot on a spare PC so my clicks won't affect it anymore while I continue to work on it. Thanks!
@Committing, I'm interested in seeing your NN if you decide to open source it.
@Committing Have you considered writing direct simulation code with SimWinGamePad? I think the Xbox app still requires to be in focus to receive the controller input (whether simulated or real) no matter what approach you take with it. So you might still not be able to use the PC for very much at the same time. XboxKeyboardMouse is great for its designed purpose, but you might be adopting an extra layer unnecessary for such automation intents.
My mouse doesn't work. I can't use any games. I don't understand why. I'm Chinese. English is not very good. What's the dead zone