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