Lines Matching defs:key
59 // Fabian Giesen: secondary key inputs in 1.5
145 // STB_TEXTEDIT_K_SHIFT a power of two that is or'd in to a keyboard input to represent the shift key
186 // and I pass both WM_KEYDOWN and WM_CHAR events to the "key" function in the
209 // void stb_textedit_key(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXEDIT_KEYTYPE key)
236 // key:
238 // for "key down" events or for "translated" key events. if you need to
241 // various definitions like STB_TEXTEDIT_K_LEFT have the is-key-event bit
242 // set, and make STB_TEXTEDIT_KEYTOCHAR check that the is-key-event bit is
727 // API key: process a keyboard input
728 static void stb_textedit_key(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_KEYTYPE key)
731 switch (key) {
733 int c = STB_TEXTEDIT_KEYTOTEXT(key);
861 int i, sel = (key & STB_TEXTEDIT_K_SHIFT) != 0;
865 key = STB_TEXTEDIT_K_RIGHT | (key & STB_TEXTEDIT_K_SHIFT);
912 int i, sel = (key & STB_TEXTEDIT_K_SHIFT) != 0;
916 key = STB_TEXTEDIT_K_LEFT | (key & STB_TEXTEDIT_K_SHIFT);