Skip to content
This repository was archived by the owner on Apr 5, 2019. It is now read-only.

DirectInput/XInput/Scan Codes #10

Closed
ProbablePrime opened this issue Apr 28, 2016 · 3 comments
Closed

DirectInput/XInput/Scan Codes #10

ProbablePrime opened this issue Apr 28, 2016 · 3 comments
Assignees

Comments

@ProbablePrime
Copy link
Owner

ProbablePrime commented Apr 28, 2016

Certain games and apps don't listen to our key events from anything other than kbm-robot due to its use of awt.robot that seems to work for everything. I don't like using it because it adds a java process that we need to take care of and a java dependency.

most of our handlers use virtual key codes or incorrect key flags. Whereas scan codes are on a lower level that games and apps might be able to pick up

There's some code on the following stack overflow which might help us to fix this that demonstates use of scan codes.
http://stackoverflow.com/questions/35155075/directx-keyinput-sending-to-a-non-active-window-alternatives

@ProbablePrime
Copy link
Owner Author

ProbablePrime commented Apr 29, 2016

@ProbablePrime
Copy link
Owner Author

ProbablePrime commented Apr 29, 2016

@ProbablePrime ProbablePrime self-assigned this Apr 29, 2016
@ProbablePrime
Copy link
Owner Author

ProbablePrime/robot@2f92bb8

Updates robot-js to use scan codes. Issue opened for discussion Robot/robot#22

https://i.probableprime.co.uk/u/r/LBmK.mp4 uses new code and sega genesis classics pick them up.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant