|
C-Menu 0.2.9
A User Interface Toolkit
|
NCurses UI backend — input handling. More...
#include "ui_backend.h"#include "ui_ncurses_internal.h"#include <stddef.h>#include <string.h>#include <termios.h>Go to the source code of this file.
Functions | |
| int | ui_get_event (UiSurface *s, uint w, UiEvent *ev, int timeout_ms) |
Wait for an input event on target (or stdscr if NULL). | |
| int | ui_get_event_multi (UiSurface *s, uint w, UiEvent *ev, int timeout_ms) |
| int | ui_get_event_no_mouse (UiSurface *s, uint w, UiEvent *ev) |
| int | ui_mice_enable (int mask) |
| int | ui_mousemask (int mask) |
NCurses UI backend — input handling.
Translates raw NCurses key codes and mouse events into the portable UiEvent representation defined in ui_backend.h.
Definition in file ui_ncurses_input.c.
Wait for an input event on target (or stdscr if NULL).
| ui | UI runtime context (unused — event comes from the window). |
| target | Surface to read from, or NULL for stdscr. |
| ev | Output UiEvent structure. |
| timeout_ms | Milliseconds to wait; -1 = block indefinitely. |
ev is NULL. Definition at line 103 of file ui_ncurses_input.c.
Definition at line 146 of file ui_ncurses_input.c.
Definition at line 203 of file ui_ncurses_input.c.
| int ui_mice_enable | ( | int | mask | ) |
Definition at line 234 of file ui_ncurses_input.c.
| int ui_mousemask | ( | int | mask | ) |
Definition at line 225 of file ui_ncurses_input.c.