EvtKeyDown
struct · core · 12 bytes
- Meaning
- Holds a held-key record: its list link and the key code
- Confidence
- verified, proof one
- Finding
- core/events#held-keys-and-repeats
Finding: Held keys and repeats in core: events
Each context keeps a list of held keys. A key-down (category 8) removes the key from the list,
dispatches as category 0xa (repeat) instead if it was there, and appends it. A key-up (9) removes
it. Category 2, the window's activation change, empties the list. EventIsKeyDown (0x41f8f0)
answers whether a key code is on the calling thread's list. The Windows repeat count plays no
part.
The derivation is in the doc.
Fields 2
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 8 | void *[2] | m_link | Holds the record's link in the held-key list | verified, proof one | core/events#held-keys-and-repeats |
0x0008 | 4 | uint32_t | m_key | Holds the key code | verified, proof one | core/events#held-keys-and-repeats |