Module wui_input_api

Module wui_input_api 

Source
Expand description

API for controling individual input sources and events, keyboard and mouse

Functions§

get_current_text_input_mode
Get the current text input mode
has_point
send_key_event
Send a key event NOTE: All tabs should get ALL key input events, especially when it comes to special keys and modifier keys. All “currently pressed” modifier keys (Shift, Ctrl, Command, etc.) are stored in a HashSet and applied as “modifiers” to any later pressed key event. The same goes for send_mouse_event (!) this enables actions such as ctrl+clicking or complex key combinations Ignoring this will lead to unexpected key presses and unintended side effects
send_mouse_event
Send some mouse event NOTE: To make this easier to use, the modifiers for the actual mouse clicks are added to the modifiers set automatically. e.g. doing a left click will add the modifier: EVENTFLAG_LEFT_MOUSE_BUTTON