Log In  

I'm working on a desktop app for Picotron and I need to detect when the AltGr key is being pressed. I tried

if keyp("altgr") then

but it doesn't work. I've also tried

if key("alt") and key("ctrl") then

and its variants (like "lctrl" or "rctrl") but it also doesn't detect when I press altgr on my keyboard.

Thanks for any help!

P#144022 2024-03-21 09:23

1

The number is 0x0E6
for example:
if key(0x0E6) then print("works") end

You can find all the codes looking at SDL scancodes https://www.freepascal-meets-sdl.net/sdl-2-0-scancode-lookup-table/

P#144340 2024-03-24 22:54 ( Edited 2024-03-24 22:55)

@jamesfoxbr omg thank you so much!

P#144404 2024-03-25 12:57
P#144422 2024-03-25 14:50

I just tried, and it sadly doesn't. Currently, altgr isn't detected at all, even on picocotron's text editor. I'm on 0.1.0c.

For example, to type "/" on my keyboard, I have to press altgr+q. Currently, I can't type "/" anymore on picotron. It used to work on the previous version.

P#144424 2024-03-25 14:54

[Please log in to post a comment]