diff options
author | Campbell Barton <campbell@blender.org> | 2022-07-14 09:10:13 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-07-14 09:10:13 +0300 |
commit | b35e33317dd3c1b0b4ceb3aa0b55f805661fdb05 (patch) | |
tree | 2776e9ead36d1d369b8aecc1a368def4703287fb /intern/ghost/GHOST_Types.h | |
parent | d6fef73ef110eb43756b7b87c2cba80abae3b39f (diff) |
Cleanup: update & correct comments for event handling
- Remove references to `ISTEXTINPUT` as any keyboard event with it's
utf8_buf set can be handled as text input.
- Update references to the key repeat flag.
Diffstat (limited to 'intern/ghost/GHOST_Types.h')
-rw-r--r-- | intern/ghost/GHOST_Types.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/intern/ghost/GHOST_Types.h b/intern/ghost/GHOST_Types.h index fa74bfde866..495fb739978 100644 --- a/intern/ghost/GHOST_Types.h +++ b/intern/ghost/GHOST_Types.h @@ -550,7 +550,12 @@ typedef struct { /** The unicode character. if the length is 6, not NULL terminated if all 6 are set. */ char utf8_buf[6]; - /** Generated by auto-repeat. */ + /** + * Enabled when the key is held (auto-repeat). + * In this case press events are sent without a corresponding release/up event. + * + * All back-ends must set this variable for correct behavior regarding repeatable keys. + */ char is_repeat; } GHOST_TEventKeyData; |