.. index:: pair: class; EE::Window::Input .. _doxid-class_e_e_1_1_window_1_1_input: class EE::Window::Input ======================= .. toctree:: :hidden: Overview ~~~~~~~~ The basic input class. For mouse and keyboard. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class Input { public: // typedefs typedef std::function`*)> :target:`InputCallback`; // construction virtual :target:`~Input`(); // methods virtual void :ref:`update`() = 0; virtual void :ref:`waitEvent`(const :ref:`Time`& timeout = Time::Zero) = 0; virtual bool :ref:`grabInput`() = 0; virtual void :ref:`grabInput`(const bool& Grab) = 0; virtual void :ref:`injectMousePos`(const :ref:`Uint16`& x, const :ref:`Uint16`& y) = 0; virtual :ref:`Vector2i` :ref:`queryMousePos`() = 0; virtual void :ref:`captureMouse`(const bool& capture) = 0; virtual bool :ref:`isMouseCaptured`() const = 0; virtual std::string :ref:`getKeyName`(const :ref:`Keycode`& keycode) const = 0; virtual :ref:`Keycode` :ref:`getKeyFromName`(const std::string& keycode) const = 0; virtual std::string :ref:`getScancodeName`(const :ref:`Scancode`& scancode) const = 0; virtual :ref:`Scancode` :ref:`getScancodeFromName`(const std::string& scancode) const = 0; virtual :ref:`Keycode` :ref:`getKeyFromScancode`(const :ref:`Scancode`& scancode) const = 0; virtual :ref:`Scancode` :ref:`getScancodeFromKey`(const :ref:`Keycode`& scancode) const = 0; bool :ref:`isKeyUp`(const :ref:`Keycode`& Key); bool :ref:`isKeyDown`(const :ref:`Keycode`& Key); bool :ref:`isScancodeUp`(const :ref:`Scancode`& scancode); bool :ref:`isScancodeDown`(const :ref:`Scancode`& scancode); void :ref:`injectKeyUp`(const :ref:`Keycode`& Key); void :ref:`injectScancodeDown`(const :ref:`Scancode`& scancode); void :ref:`injectScancodeUp`(const :ref:`Scancode`& scancode); void :ref:`injectMousePos`(const :ref:`Vector2i`& Pos); void :ref:`injectButtonPress`(const :ref:`Uint32`& Button); void :ref:`injectButtonRelease`(const :ref:`Uint32`& Button); bool :ref:`isLeftControlPressed`() const; bool :ref:`isRightControlPressed`() const; bool :ref:`isControlPressed`() const; bool :ref:`isKeyModPressed`() const; bool :ref:`isLeftShiftPressed`() const; bool :ref:`isRightShiftPressed`() const; bool :ref:`isShiftPressed`() const; bool :ref:`isAltPressed`() const; bool :ref:`isLeftAltPressed`() const; bool :ref:`isAltGrPressed`() const; bool :ref:`isMetaPressed`() const; bool :ref:`isMouseLeftPressed`() const; bool :ref:`isMouseRightPressed`() const; bool :ref:`isMouseMiddlePressed`() const; bool :ref:`mouseLeftClicked`() const; bool :ref:`mouseRightClicked`() const; bool :ref:`mouseMiddleClicked`() const; bool :ref:`mouseLeftDoubleClicked`() const; bool :ref:`mouseRightDoubleClicked`() const; bool :ref:`mouseMiddleDoubleClicked`() const; bool :ref:`mouseWheelScrolledUp`() const; bool :ref:`mouseWheelScrolledDown`() const; :ref:`Uint32` :ref:`pushCallback`(const :ref:`InputCallback`& cb); void :ref:`popCallback`(const :ref:`Uint32`& CallbackId); :ref:`Vector2i` :ref:`getMousePos`() const; :ref:`Vector2f` :ref:`getMousePosf`(); void :ref:`setMousePos`(const :ref:`Vector2i`& Pos); :ref:`Vector2f` :ref:`getMousePosFromView`(const :ref:`View`& View); void :ref:`setMouseSpeed`(const :ref:`Float`& Speed); const :ref:`Float`& :ref:`getMouseSpeed`() const; const :ref:`Uint32`& :ref:`getLastPressTrigger`() const; const :ref:`Uint32`& :ref:`getPressTrigger`() const; const :ref:`Uint32`& :ref:`getReleaseTrigger`() const; const :ref:`Uint32`& :ref:`getClickTrigger`() const; const :ref:`Uint32`& :ref:`getDoubleClickTrigger`() const; const :ref:`Time`& :ref:`getDoubleClickInterval`() const; void :ref:`setDoubleClickInterval`(const :ref:`Time`& Interval); void :ref:`cleanStates`(); void :ref:`sendEvent`(:ref:`InputEvent`* Event); :ref:`JoystickManager`* :ref:`getJoystickManager`() const; :ref:`Uint32` :ref:`getFingerCount`(); :ref:`InputFinger`* :ref:`getFingerIndex`(const :ref:`Uint32`& Index); :ref:`InputFinger`* :ref:`getFinger`(const :ref:`Int64`& fingerId); std::vector<:ref:`InputFinger`*> :ref:`getFingersDown`(); std::vector<:ref:`InputFinger`*> :ref:`getFingersWasDown`(); const :ref:`Uint32`& :ref:`getModState`() const; void :ref:`processEvent`(:ref:`InputEvent`* Event); const :ref:`Uint64`& :ref:`getEventsSentId`() const; :ref:`Uint32` :target:`getSanitizedModState`() const; bool :target:`isModState`(const :ref:`Uint32`& state) const; :ref:`Time` :target:`getElapsedSinceLastEvent`() const; :ref:`Time` :target:`getElapsedSinceLastKeyboardEvent`() const; :ref:`Time` :target:`getElapsedSinceLastMouseEvent`() const; :ref:`Time` :target:`getElapsedSinceLastKeyboardOrMouseEvent`() const; }; .. _details-class_e_e_1_1_window_1_1_input: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ The basic input class. For mouse and keyboard. Methods ------- .. index:: pair: function; update .. _doxid-class_e_e_1_1_window_1_1_input_1a2443d15107e08ad14ecf99a2ab17bbcb: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void update() = 0 Update the :ref:`Input ` .. index:: pair: function; waitEvent .. _doxid-class_e_e_1_1_window_1_1_input_1ada9a75abcfaec99b522cee49de92fbd3: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void waitEvent(const :ref:`Time`& timeout = Time::Zero) = 0 If timeout is zero waits indefinitely for the next available event otherwise waits until the specified timeout for the next available event. .. index:: pair: function; grabInput .. _doxid-class_e_e_1_1_window_1_1_input_1a172a76c2faa028baa1e66c945f6fc106: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual bool grabInput() = 0 .. rubric:: Returns: If the mouse and keyboard are grabed. .. index:: pair: function; grabInput .. _doxid-class_e_e_1_1_window_1_1_input_1a81c8112b41b81c4f85ad5bce77774d02: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void grabInput(const bool& Grab) = 0 Grab or Ungrab the mouse and keyboard. .. index:: pair: function; injectMousePos .. _doxid-class_e_e_1_1_window_1_1_input_1ae0f48cb2d67ad5e769e47962fc0ed205: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void injectMousePos(const :ref:`Uint16`& x, const :ref:`Uint16`& y) = 0 Inject the mouse position given .. index:: pair: function; queryMousePos .. _doxid-class_e_e_1_1_window_1_1_input_1a30f354db8a8f5f5fdb32902a59b6b8eb: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual :ref:`Vector2i` queryMousePos() = 0 Gets the current mouse position relative to the focus window .. index:: pair: function; captureMouse .. _doxid-class_e_e_1_1_window_1_1_input_1a04e755962f0d6c680d877fc3b7b6d557: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void captureMouse(const bool& capture) = 0 Capturing enables your app to obtain mouse events globally, instead of just within your window. Not all video targets support this function. When capturing is enabled, the current window will get all mouse events, but unlike relative mode, no change is made to the cursor and it is not restrained to your window. .. index:: pair: function; isMouseCaptured .. _doxid-class_e_e_1_1_window_1_1_input_1a0b8960d6b192e29f5a55d1bb3eddf2d2: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual bool isMouseCaptured() const = 0 .. rubric:: Returns: If mouse is captured. .. index:: pair: function; getKeyName .. _doxid-class_e_e_1_1_window_1_1_input_1a57f3d8d709ef626c4e48f9f7528ed3de: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual std::string getKeyName(const :ref:`Keycode`& keycode) const = 0 .. rubric:: Returns: Get the key name. .. index:: pair: function; getKeyFromName .. _doxid-class_e_e_1_1_window_1_1_input_1a89455d38657bd37048adbe2a5d1c6733: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual :ref:`Keycode` getKeyFromName(const std::string& keycode) const = 0 .. rubric:: Returns: The corresponding keycode from a name. .. index:: pair: function; getScancodeName .. _doxid-class_e_e_1_1_window_1_1_input_1a5baf21140fe8a96cb8dd79ba44a9eb92: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual std::string getScancodeName(const :ref:`Scancode`& scancode) const = 0 .. rubric:: Returns: Get the scancode name. .. index:: pair: function; getScancodeFromName .. _doxid-class_e_e_1_1_window_1_1_input_1afbcbdc7aa4a24674547bf466f292775e: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual :ref:`Scancode` getScancodeFromName(const std::string& scancode) const = 0 .. rubric:: Returns: The corresponding scancode from a name. .. index:: pair: function; getKeyFromScancode .. _doxid-class_e_e_1_1_window_1_1_input_1a63507a92911fe47b77c23b0439e0c759: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual :ref:`Keycode` getKeyFromScancode(const :ref:`Scancode`& scancode) const = 0 .. rubric:: Returns: The key from the scancode. .. index:: pair: function; getScancodeFromKey .. _doxid-class_e_e_1_1_window_1_1_input_1a1b842ee2ede8b38b49b7a4e8d9c1f326: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual :ref:`Scancode` getScancodeFromKey(const :ref:`Keycode`& scancode) const = 0 .. rubric:: Returns: The scancode from a key. .. index:: pair: function; isKeyUp .. _doxid-class_e_e_1_1_window_1_1_input_1af8d51010c9d9a32b8c18f81c66185b8f: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool isKeyUp(const :ref:`Keycode`& Key) .. rubric:: Returns: If keyboard key was released. .. index:: pair: function; isKeyDown .. _doxid-class_e_e_1_1_window_1_1_input_1a2b7e2d475d190d359ed79f6e7f330f05: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool isKeyDown(const :ref:`Keycode`& Key) .. rubric:: Returns: If keyboard key is pressed. .. index:: pair: function; isScancodeUp .. _doxid-class_e_e_1_1_window_1_1_input_1a325e3dcbb26d3a0f0258fbab0a213e8f: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool isScancodeUp(const :ref:`Scancode`& scancode) .. rubric:: Returns: If scancode was released. .. index:: pair: function; isScancodeDown .. _doxid-class_e_e_1_1_window_1_1_input_1a72b858e0ea5a6c422e2649516c564730: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool isScancodeDown(const :ref:`Scancode`& scancode) .. rubric:: Returns: If scancode it's pressed. .. index:: pair: function; injectKeyUp .. _doxid-class_e_e_1_1_window_1_1_input_1a7c6701c5ab4150ed4fcc4e6b33774c76: .. ref-code-block:: cpp :class: doxyrest-title-code-block void injectKeyUp(const :ref:`Keycode`& Key) Inject the key state of a key as key up or released. .. index:: pair: function; injectScancodeDown .. _doxid-class_e_e_1_1_window_1_1_input_1a5bc3a2e3f14cbe5f98b1b57139e86ed5: .. ref-code-block:: cpp :class: doxyrest-title-code-block void injectScancodeDown(const :ref:`Scancode`& scancode) Inject the scancode state of a scancode as pressed. .. index:: pair: function; injectScancodeUp .. _doxid-class_e_e_1_1_window_1_1_input_1a71a53cbbf195e34d49b82946f37c0c3b: .. ref-code-block:: cpp :class: doxyrest-title-code-block void injectScancodeUp(const :ref:`Scancode`& scancode) Inject the key state of a key as released. .. index:: pair: function; injectMousePos .. _doxid-class_e_e_1_1_window_1_1_input_1aea30dbec7f36000df54994ba6bd5384f: .. ref-code-block:: cpp :class: doxyrest-title-code-block void injectMousePos(const :ref:`Vector2i`& Pos) Inject the mouse position given .. index:: pair: function; injectButtonPress .. _doxid-class_e_e_1_1_window_1_1_input_1a307a352342f748be507cf0c529212011: .. ref-code-block:: cpp :class: doxyrest-title-code-block void injectButtonPress(const :ref:`Uint32`& Button) Inject the mouse button as pressed .. index:: pair: function; injectButtonRelease .. _doxid-class_e_e_1_1_window_1_1_input_1aac7228e766a14b8f33e9a42a72163a7d: .. ref-code-block:: cpp :class: doxyrest-title-code-block void injectButtonRelease(const :ref:`Uint32`& Button) Inject the mouse button as released .. index:: pair: function; isLeftControlPressed .. _doxid-class_e_e_1_1_window_1_1_input_1a63953ebcf0e36ceaa2f09248b9b8820e: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool isLeftControlPressed() const .. rubric:: Returns: If the left Control Key is pressed .. index:: pair: function; isRightControlPressed .. _doxid-class_e_e_1_1_window_1_1_input_1a2f3c167d45e517840c1127e5b388cc9d: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool isRightControlPressed() const .. rubric:: Returns: If the right Control Key is pressed .. index:: pair: function; isControlPressed .. _doxid-class_e_e_1_1_window_1_1_input_1a564cbf56cdeb722e96930f20367631c2: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool isControlPressed() const .. rubric:: Returns: If the Control Key is pressed .. index:: pair: function; isKeyModPressed .. _doxid-class_e_e_1_1_window_1_1_input_1a8442461074185ac7346abc9b9120f34e: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool isKeyModPressed() const .. rubric:: Returns: If the default key modifier is pressed .. index:: pair: function; isLeftShiftPressed .. _doxid-class_e_e_1_1_window_1_1_input_1a4a5167bf8b90f193ec6010d802b2c0a1: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool isLeftShiftPressed() const .. rubric:: Returns: If the left Shift Key is pressed .. index:: pair: function; isRightShiftPressed .. _doxid-class_e_e_1_1_window_1_1_input_1aa39a7831c08c5f1b20d342ed889c1311: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool isRightShiftPressed() const .. rubric:: Returns: If the right Shift Key is pressed .. index:: pair: function; isShiftPressed .. _doxid-class_e_e_1_1_window_1_1_input_1a1f01ad217fc864a80afa25d6e9351b57: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool isShiftPressed() const .. rubric:: Returns: If the Shift Key is pressed .. index:: pair: function; isAltPressed .. _doxid-class_e_e_1_1_window_1_1_input_1a414560f5654a6adb761974e0febfb85f: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool isAltPressed() const .. rubric:: Returns: If any Alt Key is pressed .. index:: pair: function; isLeftAltPressed .. _doxid-class_e_e_1_1_window_1_1_input_1ac06ab0fd3e63de93b53768952f547e88: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool isLeftAltPressed() const .. rubric:: Returns: If the left Alt Key is pressed .. index:: pair: function; isAltGrPressed .. _doxid-class_e_e_1_1_window_1_1_input_1a446cd8f3b356dc3c08adac30c3d3c4c2: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool isAltGrPressed() const .. rubric:: Returns: If the right Alt Key is pressed .. index:: pair: function; isMetaPressed .. _doxid-class_e_e_1_1_window_1_1_input_1a9040d540abd809f39194fbf93700717e: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool isMetaPressed() const .. rubric:: Returns: If the Meta Key is pressed .. index:: pair: function; isMouseLeftPressed .. _doxid-class_e_e_1_1_window_1_1_input_1a17dc4e4c9b3aed8d139fc2797b29ac93: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool isMouseLeftPressed() const .. rubric:: Returns: If mouse left button it's pressed .. index:: pair: function; isMouseRightPressed .. _doxid-class_e_e_1_1_window_1_1_input_1a9db09e6a458ebe58524d58bd6fee8078: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool isMouseRightPressed() const .. rubric:: Returns: If mouse right button it's pressed .. index:: pair: function; isMouseMiddlePressed .. _doxid-class_e_e_1_1_window_1_1_input_1a3a87a11aebfa8b36358a54987edfc2c1: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool isMouseMiddlePressed() const .. rubric:: Returns: If mouse middle button it's pressed .. index:: pair: function; mouseLeftClicked .. _doxid-class_e_e_1_1_window_1_1_input_1af1fe0e5cfa078bcbc25ed4ddf91acb81: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool mouseLeftClicked() const .. rubric:: Returns: If mouse left click was clicked .. index:: pair: function; mouseRightClicked .. _doxid-class_e_e_1_1_window_1_1_input_1a94527d8009ae988251e2610783494173: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool mouseRightClicked() const .. rubric:: Returns: If mouse right click was clicked .. index:: pair: function; mouseMiddleClicked .. _doxid-class_e_e_1_1_window_1_1_input_1a982b8198ec6805132f7dfbb4b4e10e6c: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool mouseMiddleClicked() const .. rubric:: Returns: If mouse middle button (scroll button) was clicked. .. index:: pair: function; mouseLeftDoubleClicked .. _doxid-class_e_e_1_1_window_1_1_input_1a5b26aec8e8c4c35a91e6a47f8dd61266: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool mouseLeftDoubleClicked() const .. rubric:: Returns: If mouse left click was double clicked .. index:: pair: function; mouseRightDoubleClicked .. _doxid-class_e_e_1_1_window_1_1_input_1a37092ef34400f58024c70708cbaa83d5: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool mouseRightDoubleClicked() const .. rubric:: Returns: If mouse right click was double clicked .. index:: pair: function; mouseMiddleDoubleClicked .. _doxid-class_e_e_1_1_window_1_1_input_1a3b6bf3de3a4850351809731efa9a2b8e: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool mouseMiddleDoubleClicked() const .. rubric:: Returns: If mouse middle button (scroll button) was double clicked. .. index:: pair: function; mouseWheelScrolledUp .. _doxid-class_e_e_1_1_window_1_1_input_1a0921e64b948f954a6c071e0dd2a7963e: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool mouseWheelScrolledUp() const .. rubric:: Returns: If mouse wheel up scrolled .. index:: pair: function; mouseWheelScrolledDown .. _doxid-class_e_e_1_1_window_1_1_input_1adfcc3a839772159dac428839be86a038: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool mouseWheelScrolledDown() const .. rubric:: Returns: If mouse wheel down scrolled .. index:: pair: function; pushCallback .. _doxid-class_e_e_1_1_window_1_1_input_1a2bfc2dec8052f354bf7b46ff4bb8eec6: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Uint32` pushCallback(const :ref:`InputCallback`& cb) Push a new input callback. .. rubric:: Returns: The Callback Id .. index:: pair: function; popCallback .. _doxid-class_e_e_1_1_window_1_1_input_1ad2943d84d68f5febb98536ab9e2f60a6: .. ref-code-block:: cpp :class: doxyrest-title-code-block void popCallback(const :ref:`Uint32`& CallbackId) Pop the callback id indicated. .. index:: pair: function; getMousePos .. _doxid-class_e_e_1_1_window_1_1_input_1a68b3ce65dc4e91f8e20093987a60b244: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Vector2i` getMousePos() const .. rubric:: Returns: The Mouse position vector .. index:: pair: function; getMousePosf .. _doxid-class_e_e_1_1_window_1_1_input_1a6bd00f634ab2874a96736d079a245db5: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Vector2f` getMousePosf() .. rubric:: Returns: The position vector converted to float .. index:: pair: function; setMousePos .. _doxid-class_e_e_1_1_window_1_1_input_1a40f4761fd9c32d5a42826b14b487d5e8: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setMousePos(const :ref:`Vector2i`& Pos) This will change the value of the mouse pos, will not REALLY move the mouse ( for that is InjectMousePos ). .. index:: pair: function; getMousePosFromView .. _doxid-class_e_e_1_1_window_1_1_input_1af57de14ce347699b0be48e91ffe2035c: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Vector2f` getMousePosFromView(const :ref:`View`& View) .. rubric:: Returns: The mouse position over the current view .. index:: pair: function; setMouseSpeed .. _doxid-class_e_e_1_1_window_1_1_input_1a3f279a6eec8a50d1c3ef2b7cdc79b1a3: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setMouseSpeed(const :ref:`Float`& Speed) Set the mouse speed ( only affects grabed windows ) .. index:: pair: function; getMouseSpeed .. _doxid-class_e_e_1_1_window_1_1_input_1af025eb629f45408779f7310f21d498e1: .. ref-code-block:: cpp :class: doxyrest-title-code-block const :ref:`Float`& getMouseSpeed() const .. rubric:: Returns: The Mouse Speed .. index:: pair: function; getLastPressTrigger .. _doxid-class_e_e_1_1_window_1_1_input_1a87092fff05abf3e21e5452051bf01f99: .. ref-code-block:: cpp :class: doxyrest-title-code-block const :ref:`Uint32`& getLastPressTrigger() const .. rubric:: Returns: The bitflags of the last pressed trigger (before the current state of press trigger) .. index:: pair: function; getPressTrigger .. _doxid-class_e_e_1_1_window_1_1_input_1a6b53f031a6c1a9f8ef6fd00fdb351b1a: .. ref-code-block:: cpp :class: doxyrest-title-code-block const :ref:`Uint32`& getPressTrigger() const Triggers are used mostly for the :ref:`UI ` components. They are simple to manage. The mouse flags are defined in ``keycodes.hpp`` For Example The usage is simple, to know if the left mouse click is pressed you need to check against the left mouse flag mask if ( myInput->PressTrigger() & EE_BUTTON_LMASK ) ... .. rubric:: Returns: The current state as flags of the mouse press trigger .. index:: pair: function; getReleaseTrigger .. _doxid-class_e_e_1_1_window_1_1_input_1ac868b9faa369f31cce086ca2d0f5ce58: .. ref-code-block:: cpp :class: doxyrest-title-code-block const :ref:`Uint32`& getReleaseTrigger() const .. rubric:: Returns: The current state as flags of the mouse release trigger .. index:: pair: function; getClickTrigger .. _doxid-class_e_e_1_1_window_1_1_input_1a83735dd21f2dad15316a191db86a89cc: .. ref-code-block:: cpp :class: doxyrest-title-code-block const :ref:`Uint32`& getClickTrigger() const .. rubric:: Returns: The current state as flags of the mouse click trigger .. index:: pair: function; getDoubleClickTrigger .. _doxid-class_e_e_1_1_window_1_1_input_1a66712e4a19111963d6d1ae1a5378c75e: .. ref-code-block:: cpp :class: doxyrest-title-code-block const :ref:`Uint32`& getDoubleClickTrigger() const .. rubric:: Returns: The current state as flags of the mouse double click trigger .. index:: pair: function; getDoubleClickInterval .. _doxid-class_e_e_1_1_window_1_1_input_1a032339f114d5e1838313fe260cb8c636: .. ref-code-block:: cpp :class: doxyrest-title-code-block const :ref:`Time`& getDoubleClickInterval() const .. rubric:: Returns: The double click interval in milliseconds ( default 500 ms ) .. index:: pair: function; setDoubleClickInterval .. _doxid-class_e_e_1_1_window_1_1_input_1a937892adca5da88b30ae839da9c3620b: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setDoubleClickInterval(const :ref:`Time`& Interval) Set the double click interval in milliseconds .. index:: pair: function; cleanStates .. _doxid-class_e_e_1_1_window_1_1_input_1a3b372e9669a0473372ff23c4730185c0: .. ref-code-block:: cpp :class: doxyrest-title-code-block void cleanStates() Clean the keyboard and mouse states .. index:: pair: function; sendEvent .. _doxid-class_e_e_1_1_window_1_1_input_1ab847d4380108db755554632ed1931e36: .. ref-code-block:: cpp :class: doxyrest-title-code-block void sendEvent(:ref:`InputEvent`* Event) Send an input event to the window .. index:: pair: function; getJoystickManager .. _doxid-class_e_e_1_1_window_1_1_input_1ada907adab452ce537071b027078f4cd9: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`JoystickManager`* getJoystickManager() const .. rubric:: Returns: The joystick manager .. index:: pair: function; getFingerCount .. _doxid-class_e_e_1_1_window_1_1_input_1a61e42b8ecaedb049f740aaf1477fe544: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Uint32` getFingerCount() .. rubric:: Returns: The maximun number of fingers .. index:: pair: function; getFingerIndex .. _doxid-class_e_e_1_1_window_1_1_input_1a86f91c59876df74472b790bdeb1a51db: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`InputFinger`* getFingerIndex(const :ref:`Uint32`& Index) .. rubric:: Returns: The input finger from it's index .. index:: pair: function; getFinger .. _doxid-class_e_e_1_1_window_1_1_input_1a07129b22dc46a4689bb514fe92a2b2f2: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`InputFinger`* getFinger(const :ref:`Int64`& fingerId) .. rubric:: Returns: The :ref:`Input ` Finder from it's id .. index:: pair: function; getFingersDown .. _doxid-class_e_e_1_1_window_1_1_input_1acb1346d78fdb258f17ceab6d1c6ba7ee: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::vector<:ref:`InputFinger`*> getFingersDown() .. rubric:: Returns: A list of the input finders that are currently down .. index:: pair: function; getFingersWasDown .. _doxid-class_e_e_1_1_window_1_1_input_1aaa493cb56adb065609d242a4d5e0266a: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::vector<:ref:`InputFinger`*> getFingersWasDown() .. rubric:: Returns: A list of the input finders that were down in the last update .. index:: pair: function; getModState .. _doxid-class_e_e_1_1_window_1_1_input_1a4fb3053951fbceb61754b433da3a7a52: .. ref-code-block:: cpp :class: doxyrest-title-code-block const :ref:`Uint32`& getModState() const .. rubric:: Returns: the state of the mod keys. .. index:: pair: function; processEvent .. _doxid-class_e_e_1_1_window_1_1_input_1a7afa73069811e9052cda8aec683fbeae: .. ref-code-block:: cpp :class: doxyrest-title-code-block void processEvent(:ref:`InputEvent`* Event) Process an input event. Called by the input update. .. index:: pair: function; getEventsSentId .. _doxid-class_e_e_1_1_window_1_1_input_1afb1b5afedf523b543f8b4e04568f670b: .. ref-code-block:: cpp :class: doxyrest-title-code-block const :ref:`Uint64`& getEventsSentId() const .. rubric:: Returns: An id of the current event update processed (