Skip to content
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

Doesn't work in PICO-8 games #419

Open
musjj opened this issue Feb 17, 2024 · 3 comments
Open

Doesn't work in PICO-8 games #419

musjj opened this issue Feb 17, 2024 · 3 comments

Comments

@musjj
Copy link

musjj commented Feb 17, 2024

I tried to remap my WSAD keys to directional keys and it works everywhere except in PICO-8 web games: https://www.lexaloffle.com/pico-8.php. It's really bizzare, because the mapping works in other web pages and the browser's UI itself, but it doesn't work inside the game.

Previously, I was using interception-tools with interception-k2k and it worked just fine. Strangely, both interception-tools and xremap uses evdev and uinput, so I'm not sure why it's not working with xremap.

My config:

keypress_delay_ms: 25
keymap:
  - remap:
      w: Up
      s: Down
      a: Left
      d: Right
      j: z
      k: x

I'm also having the same stuttering problem mentioned in the other issue: #268 (comment)

My keypress_delay_ms is already set to the same value of my Hyprland config's repeat_rate, but it's still stuttering.

@k0kubun
Copy link
Contributor

k0kubun commented Feb 19, 2024

Can you use modmap for this please? It's not what keymap is meant for, at the moment. I may fix it in future versions though.

@musjj
Copy link
Author

musjj commented Feb 19, 2024

It looks that modmap works, but my original use-case was that I was using a mode to toggle the WSAD mapping. But it looks like that mode is not supported in modmap: #219

Are there any alternatives?

@k0kubun
Copy link
Contributor

k0kubun commented Feb 19, 2024

I'm not sure if we have alternatives. We need somebody to implement #219.

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

No branches or pull requests

2 participants