You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, so KeyEvent.keycode has the string representation like KEY_A, KeyEvent.scancode is the integer for the key code, not the scancode (maybe for an AT keyboard it happens to be the same number???).
Ah, I misunderstood your question (Maybe I should have also read the headline). Looking at the python code, KeyEvent.scancode is indeed the events code, like KEY_A. There is no mapping happening.
I honestly never worked with EV_MSC events, so I would have to look definitions up to answer further questions.
As far as I can understand EV_KEY code is a key code (mapped from the scancode, reported in an EV_MSC type MSC_SCAN value).
The text was updated successfully, but these errors were encountered: