-
Notifications
You must be signed in to change notification settings - Fork 130
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
Problems in RMX-OS, Input.update #72
Comments
And this is on Windows, yes? |
This is on Windows yes. I've managed a temporary fix after some tinkering, by including another call to Win32API:
This makes input work just fine it has just one very big side-effect. It continues grabbing and updating keystrokes even when the application isn't active/minimized. Do you have any plans of adding full-keyboard input to mkxp, perhaps? |
Yes, see #70. I'm still thinking about the best way to write something generic that can cover as many use cases as possible. I will probably open a separate issue for it soon. |
I created an issue for general keyboard input: #73. As for your specific problem khkramer, it could be related to how SDL sets up its window and processes messages on Windows. Why do you need it to work so badly btw., I thought you were trying to port the code over to mkxp anyway? |
Well I had to have the chat functional to test a lot of things, and I didn't know if you were going to add full keyboard input or something that allows us to use those full keyboard input scripts, so my plan was originally to first fix it on windows and then look up if there are similar api calls on Linux. I'm pretty sure it's how SDL set up its windows then, since I'm checking the thread id of the caller (so the game) and then checking the thread id of the foreground window, and then comparing them to see if the game has focus and is in the foreground. However even when it is the foreground window it returns another thread id for the window than the 'normal' thread id if that makes sense |
Added full keyboard support to mkxp, you can check my win32 wrapper for how to use it. |
Cool. I'll try it out later today, and let you know how it worked. |
Closing this for now, reopen if you need to. |
Very very late response from me :) It works like a charm, however it breaks mouseclicks for me. |
Oh, I see, it's because you're overriding |
Input.update isn't being called in the win32-wrapper?? |
Oh sorry, brainfart. I meant |
I saved an alias like this
And called that instead and it's not detecting arrow keys as mouse buttons anymore, however actual mouse clicks still aren't detected. Edit: Tried another input script with which it does work. So this problem is pretty much fixed on my end. |
I'd still be interested into why Mouse input didn't work the first time, but oh well. |
This is the update method in question, it's working fine in vanilla rpgxp, the rpgvx ace player and arc.
The problem is that this piece of code always returns false:
While it should return true when a key is being pressed.
I have tried changing several things but none have worked so far.
The text was updated successfully, but these errors were encountered: