djlastnight / KeyboardSplitterXbox

Creates up to 4 virtual xbox 360 controllers and feeds them via one or more keyboards.
463 stars 43 forks source link

Does Keyboard Splitter have a way to ignore sendkeys api input #124

Open LewdPain opened 2 years ago

LewdPain commented 2 years ago

I'm using a Twitch bot called Firebot to activate keyboard hotkeys thru my commands but my player 2 command doesn't register to it from KeyboardSplitter. So the devs sent me here. If Keyboard splitter is not reading my player 2 button inputs inside Firebot even with keyboard hotkeys that I needed to ask the almighty Keyboard Splitter if that was a option. They stated if the app has a ignore sendkey api input to turn off or on that would most likely fix my issue. Thank you so much for creating such a amazing application as it has done amazing things for me gaming on steam.

tylearymf commented 2 years ago

I have the same problem

tylearymf commented 2 years ago

Hi, @LewdPain ,I found a support to create virtual joystick, and interact with them using an API, its name is ViGEmBus, I use the ViGEm.NET, it works!!!

djlastnight commented 2 years ago

KS gets the input before the sendkeys api, it uses special keyboard driver - that's why the keyboard interception is possible. I am not sure what you wish to acheive exactly.

I started wondering is the written above is actually correct. It gets the raw input, which comes from the hardware first, but sendkeys is a windows api, so I am not sure if we can ignore it via KS. I wrote this app years ago, so I have to do a research. https://raw.githubusercontent.com/djlastnight/KeyboardSplitterXbox/master/how_it_works_diagram.png

LewdPain commented 2 years ago

thank you @djlastnight forand @tylearymf for answering back. This app is amazing. I'm using it to have two players in a game called Demon Slayer on one keyboard. But have the bot send the commands in.

yingtian991221 commented 2 years ago

I have just the opposite problem: I'm using jscript to trigger sendkeys, but I think the splitter cannot recognize the signals because the splitter only reads the signals from that certain keyboard..

yingtian991221 commented 2 years ago

@djlastnight @tylearymf I have another question that I hope to use sendkeys to trigger xbox emulation for VR controller, but I find keyboard splitter must choose a keyboard from which you get the keys. Sendkeys I think don't have a keyboard id, so it actually didn't receive that sent signal. Could you give me any suggestions?

tylearymf commented 2 years ago

@djlastnight @tylearymf I have another question that I hope to use sendkeys to trigger xbox emulation for VR controller, but I find keyboard splitter must choose a keyboard from which you get the keys. Sendkeys I think don't have a keyboard id, so it actually didn't receive that sent signal. Could you give me any suggestions?

May be you can try this repository : https://github.com/tylearymf/AutomaticGamepad

yingtian991221 commented 2 years ago

@djlastnight @tylearymf I have another question that I hope to use sendkeys to trigger xbox emulation for VR controller, but I find keyboard splitter must choose a keyboard from which you get the keys. Sendkeys I think don't have a keyboard id, so it actually didn't receive that sent signal. Could you give me any suggestions?

May be you can try this repository : https://github.com/tylearymf/AutomaticGamepad

Very useful, much thanks!