|
Axmol 3.0.0-89d6d9a
|
Input Method Edit Message Dispatcher. More...
#include <InputSystem.h>
Public Member Functions | |
| ~InputSystem () | |
| @lua NA | |
| Rect | getNodeNativeWindowRect (Node *node) const |
| Unified bridging utility to extract a node's UI bounding rect in native OS window coordinates. | |
| void | setInteractive (bool interactive) |
| Enable or disable pointer interactions. | |
| void | dispatchPerformEditAction (EditAction action) |
| Dispatch a request to perform the given edit action. | |
| bool | hasAttachedDelegate () const |
| Returns the delegate attached to the IME, or nullptr if no delegate is attached. | |
| bool | dispatchHitTestWithIME (const Vec2 &location) |
| Returns the delegate attached to the IME, or nullptr if no delegate is attached. | |
| void | dispatchInsertText (std::string_view text) |
| Dispatches the input text from IME. | |
| void | dispatchDeleteBackward (unsigned int numChars) |
| Dispatches the delete-backward operation. | |
| void | dispatchControlKey (KeyboardEvent::KeyCode keyCode) |
| Dispatches the press control key operation. | |
| void | dispatchKeyboardWillShow (IMEKeyboardNotificationInfo &info) |
| @lua NA | |
| void | dispatchKeyboardDidShow (IMEKeyboardNotificationInfo &info) |
| @lua NA | |
| void | dispatchKeyboardWillHide (IMEKeyboardNotificationInfo &info) |
| @lua NA | |
| void | dispatchKeyboardDidHide (IMEKeyboardNotificationInfo &info) |
| @lua NA | |
| void | dispatchEvent (Event *event, bool immediate=false) |
| Centralized event dispatch. | |
| Vec2 | getLastPointerPosition () const |
| Returns the last recorded pointer position. | |
Static Public Member Functions | |
| static InputSystem * | getInstance () |
| Returns the shared InputSystem object for the system. | |
Input Method Edit Message Dispatcher.
|
static |
Returns the shared InputSystem object for the system.
@lua NA
| void setInteractive | ( | bool | interactive | ) |
Enable or disable pointer interactions.
When disabled, active pointers are canceled and new pointer events are ignored.
| void dispatchPerformEditAction | ( | EditAction | action | ) |
Dispatch a request to perform the given edit action.
Called from the platform view on the main/UI thread. If no delegate is attached, this call is a no-op.
| bool dispatchHitTestWithIME | ( | const Vec2 & | location | ) |
Returns the delegate attached to the IME, or nullptr if no delegate is attached.
@lua NA
| void dispatchInsertText | ( | std::string_view | text | ) |
Dispatches the input text from IME.
@lua NA
| void dispatchDeleteBackward | ( | unsigned int | numChars | ) |
Dispatches the delete-backward operation.
@lua NA
| void dispatchControlKey | ( | KeyboardEvent::KeyCode | keyCode | ) |
Dispatches the press control key operation.
@lua NA
| void dispatchEvent | ( | Event * | event, |
| bool | immediate = false ) |
Centralized event dispatch.
InputSystem will apply input scaling to mouse/touch events before forwarding to EventDispatcher.
|
inline |
Returns the last recorded pointer position.
This value is expressed in the platform's raw screen/canvas coordinate system (native pixels as reported by the platform input layer). It represents the most recent pointer location prior to the current update and is shared for mouse, touch and pen input.