.. index:: pair: class; EE::Scene::KeyEvent .. _doxid-class_e_e_1_1_scene_1_1_key_event: class EE::Scene::KeyEvent ========================= .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class KeyEvent: public :ref:`EE::Scene::Event` { public: // construction :target:`KeyEvent`(:ref:`Node`* node, const :ref:`Uint32`& eventNum, const :ref:`Keycode`& keyCode, const :ref:`Scancode`& scancode, const :ref:`Uint32`& chr, const :ref:`Uint32`& mod); :target:`KeyEvent`(const KeyEvent& event); :target:`~KeyEvent`(); // methods const :ref:`Keycode`& :target:`getKeyCode`() const; const :ref:`Scancode`& :target:`getScancode`() const; const :ref:`String::StringBaseType`& :target:`getChar`() const; const :ref:`Uint32`& :target:`getMod`() const; :ref:`Uint32` :ref:`getSanitizedMod`() const; }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // enums enum :ref:`EventType`; // methods :ref:`Node`* :ref:`getNode`() const; const :ref:`Uint32`& :ref:`getType`() const; const :ref:`Uint32`& :ref:`getCallbackId`() const; const :ref:`MouseEvent`* :ref:`asMouseEvent`() const; const KeyEvent* :ref:`asKeyEvent`() const; const :ref:`DropEvent`* :ref:`asDropEvent`() const; const :ref:`TextEvent`* :ref:`asTextEvent`() const; const :ref:`TextInputEvent`* :ref:`asTextInputEvent`() const; const :ref:`WindowEvent`* :ref:`asWindowEvent`() const; const :ref:`ItemValueEvent`* :ref:`asItemValueEvent`() const; const :ref:`RowCreatedEvent`* :ref:`asRowCreatedEvent`() const; const :ref:`FocusEvent`* :ref:`asFocusEvent`() const; .. _details-class_e_e_1_1_scene_1_1_key_event: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Methods ------- .. index:: pair: function; getSanitizedMod .. _doxid-class_e_e_1_1_scene_1_1_key_event_1aa666606eeb83bddccefed67d01286763: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Uint32` getSanitizedMod() const The modifier key mask only for CTRL ALT SHIFT and META (no caps, num, etc)