I'm using nut.js to try to get a custom game controller to work in an Electron app with React front-end, and I ran into an issue with the keyboard press/release functions in Windows 11. When you press a mouse buttons, the OS considers the button to be "still pressed" until the button is released. With the keyboard, however, when you press a key, the OS does not seem to consider the key to be "still pressed" until the key is released. This means that custom timing code is needed to mimic the OS's key repeat behavior. I realize this is a fork, so I may be out of luck, but I'm curious if support could be added for this.
I'm using nut.js to try to get a custom game controller to work in an Electron app with React front-end, and I ran into an issue with the keyboard press/release functions in Windows 11. When you press a mouse buttons, the OS considers the button to be "still pressed" until the button is released. With the keyboard, however, when you press a key, the OS does not seem to consider the key to be "still pressed" until the key is released. This means that custom timing code is needed to mimic the OS's key repeat behavior. I realize this is a fork, so I may be out of luck, but I'm curious if support could be added for this.