Blender V4.3
GWL_KeyRepeatPlayload Struct Reference

Public Attributes

GWL_Seatseat = nullptr
 
xkb_keycode_t key_code
 
uint64_t time_ms_init
 
struct { 
 
   GHOST_TKey   gkey 
 
key_data 
 

Detailed Description

Data used to implement client-side key-repeat.

Note
it's important not to store the target window here as it can be closed while the key is repeating, instead use the focused keyboard from GWL_Seat which is cleared when windows are closed. Therefor keyboard events must always check the window has not been cleared.

Definition at line 648 of file GHOST_SystemWayland.cc.

Member Data Documentation

◆ gkey

GHOST_TKey GWL_KeyRepeatPlayload::gkey

◆ key_code

xkb_keycode_t GWL_KeyRepeatPlayload::key_code

◆ [struct]

struct { ... } GWL_KeyRepeatPlayload::key_data

Don't cache the utf8_buf as this changes based on modifiers which may be pressed while key repeat is enabled.

Referenced by gwl_seat_key_repeat_timer_fn(), keyboard_handle_enter(), and keyboard_handle_key().

◆ seat

GWL_Seat* GWL_KeyRepeatPlayload::seat = nullptr

◆ time_ms_init

uint64_t GWL_KeyRepeatPlayload::time_ms_init

Time this timer started.

Definition at line 654 of file GHOST_SystemWayland.cc.

Referenced by gwl_seat_key_repeat_timer_fn().


The documentation for this struct was generated from the following file: