-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Backend] KeyDown is not working for DirectInput games - other than writing individual ANSI characters #354
Comments
This could be the game intercepting something, no idea, @MerlijnWajer ideas? |
@Turbine1991: Can you provide a list of games which you tried? Which games accept alphabetic (or alphanumeric) input, and which do not accept any input at all? @Turbine1991, @JohnPeel, @MerlijnWajer: If a game chooses to bypass the normal desktop input messages and instead uses the DirectInput API and subscribes to That normal characters go through is very interesting and something I'm not sure can be explained solely by referencing the API. A possible solution is to put synthetic |
No 3d game I've tried seems to work on Windows. Rust, Natural Selection 2, Android emulator AMIDuOS - for a game. Everything SCAR divi fails to pass inputs to. Usually it's mouse clicks, but a lot of the time even key board inputs fail. Some other macro utilities inputs work like autohotkey. |
@Turbine1991: See this. It looks like AutoHotkey simulates |
How hard would it be to implement it so we can test its effectiveness? Even as an alternative click function - to ensure compatibility in any regressive cases. |
@Turbine1991: Implementation might be two weeks of off and on work with testing however actually figuring out the Windows API regarding how input is handled might take me another month. There are also some issues getting everything built around and for Simba ported to FPC 3.0.0 and Lazarus 1.6.4. I'll be working on this fairly consistently and might get code committed but don't hold your breath. If you have actually found discrepancies in how programs treat input (e.g. letters work but some symbols and command keys don't) I need to know which programs as it provides valuable information about the Windows API. There's a lot more going on under the surface than is readily apparent. I might need to create a suite of test programs just to make sure whatever gets added works properly. |
Sometimes it feels like Pascal is more trouble than it's worth. Considering how dead Pascal/Delphi is these days. I've just tried NS2 using keypress, sendkeys and clickmouse - only sendkeys worked. I could write a string, but I could not write it using keypress or keydown functions. [Edit] The thing is, I don't know of any non-browser game which actually works. |
@Turbine1991 it's really not the programming language that is the issue. This is all backend stuff, just calls to the Windows/XLib API, more or less. We are by no means being limited in capabilities by Simba being written in FPC. Further more looking at popularity statistics for object pascal, it's by no means out of the picture, being in the top-10 @ TIOBE. |
Currently for some games when you try to press a key such as Enter or ~ for console, it does not go though. However writing any letter does.
The text was updated successfully, but these errors were encountered: