Skip to content

Fix keyboard handling for SDL1#974

Open
th-otto wants to merge 1 commit into
TheAssemblyArmada:vanillafrom
th-otto:PR-27
Open

Fix keyboard handling for SDL1#974
th-otto wants to merge 1 commit into
TheAssemblyArmada:vanillafrom
th-otto:PR-27

Conversation

@th-otto

@th-otto th-otto commented Mar 24, 2024

Copy link
Copy Markdown
Contributor

A lot of scancodes in SDL1 are > 256. The current code assumed in a lot of places that they are less than 256, causing eg. ctrl-key combination not to work.

Also the the sdl_keymap array for translating keysyms to ascii was only suitable for SDL2.

@th-otto

th-otto commented Mar 24, 2024

Copy link
Copy Markdown
Contributor Author

Unfortunately this PR will conflict with #957

Please let me know of you want to merge that PR first, then i will refactor the code

A lot of scancodes in SDL1 are > 256. The current code assumed in a lot
of places that they are less than 256, causing eg. ctrl-key combination
not to work.

Also the the sdl_keymap array for translating keysyms to ascii was only
suitable for SDL2.
@OmniBlade

Copy link
Copy Markdown
Contributor

I merged the other PR first, feel free to update this PR.

@arczi84

arczi84 commented Sep 8, 2024

Copy link
Copy Markdown

I have used your fix in my branch merged with main one but can't scroll map with keyboard arrows. Can you test that on your end?

EDIT: Changing key numbers in .ini file fixed that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants