MCPcopy Create free account
hub / github.com/davisking/dlib / wait_for_keypress_char

Function wait_for_keypress_char

tools/python/src/gui.cpp:110–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110void wait_for_keypress_char(image_window& win, const char wait_key) {
111 unsigned long key;
112 bool is_printable;
113 while(win.get_next_keypress(key,is_printable))
114 {
115 if (is_printable && (char)key == wait_key)
116 return;
117 }
118}
119
120void wait_for_keypress_other(image_window& win, const base_window::non_printable_keyboard_keys wait_key) {
121 unsigned long key;

Callers

nothing calls this directly

Calls 1

get_next_keypressMethod · 0.80

Tested by

no test coverage detected