You are not logged in.

#1 2022-07-02 17:45:30

bscore
Member
Registered: 2022-06-08
Posts: 11

[SOLVED] Converting X11 keycodes to its value in <X11/keysys.h>

I'm running an application that outputs keyboard event keycodes from X11, and I'm trying to capture the Print Screen keycode, which outputs as "KeyPress: 6b". I'm unsure how to find its correlating entry in the <X11/keysymdef.h> (or XF86keysym.h) headers with that value. I apologize if it's something obvious, but I can't find it.

Last edited by bscore (2022-07-03 02:56:01)

Offline

#2 2022-07-02 19:40:00

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,242

Re: [SOLVED] Converting X11 keycodes to its value in <X11/keysys.h>

I suggest to simply run "xev -event keybord" instead of "an application".
But XK_Print is 0xff61 and that's what you're looking for.

Offline

#3 2022-07-03 02:56:39

bscore
Member
Registered: 2022-06-08
Posts: 11

Re: [SOLVED] Converting X11 keycodes to its value in <X11/keysys.h>

@Seth that method is much easier, and has helped me identify all the other keys I've been questioning. Thank you!

Offline

Board footer

Powered by FluxBB