Castor3D 0.16.0
Multiplatform 3D engine
Public Member Functions | List of all members
castor3d::KeyboardEvent Class Reference

#include <KeyboardEvent.hpp>

Inheritance diagram for castor3d::KeyboardEvent:
Inheritance graph
[legend]
Collaboration diagram for castor3d::KeyboardEvent:
Collaboration graph
[legend]

Public Member Functions

 KeyboardEvent (KeyboardEventType type, KeyboardKey key, bool ctrl, bool alt, bool shift)
 Constructor.
 
 KeyboardEvent (KeyboardEventType type, KeyboardKey key, castor::String const &c, bool ctrl, bool alt, bool shift)
 Constructor.
 
KeyboardEventType getKeyboardEventType () const
 
KeyboardKey getKey () const
 
castor::String const & getChar () const
 
bool isCtrlDown () const
 
bool isAltDown () const
 
bool isShiftDown () const
 
- Public Member Functions inherited from castor3d::UserInputEvent
C3D_API UserInputEvent (UserInputEvent &&)=default
 
C3D_API UserInputEvent (UserInputEvent const &)=default
 
C3D_API UserInputEventoperator= (UserInputEvent &&)=default
 
C3D_API UserInputEventoperator= (UserInputEvent const &)=default
 
 UserInputEvent (UserInputEventType type)
 Constructor.
 
virtual C3D_API ~UserInputEvent () noexcept=default
 Destructor.
 
UserInputEventType getEventType () const
 

Constructor & Destructor Documentation

◆ KeyboardEvent() [1/2]

castor3d::KeyboardEvent::KeyboardEvent ( KeyboardEventType type,
KeyboardKey key,
bool ctrl,
bool alt,
bool shift )
inline

Constructor.

Parameters
[in]typeThe keyboard event type.
[in]keyThe key code.
[in]ctrlTells if the Ctrl key is down.
[in]altTells if the Alt key is down.
[in]shiftTells if the Shift key is down.

◆ KeyboardEvent() [2/2]

castor3d::KeyboardEvent::KeyboardEvent ( KeyboardEventType type,
KeyboardKey key,
castor::String const & c,
bool ctrl,
bool alt,
bool shift )
inline

Constructor.

Parameters
[in]typeThe keyboard event type.
[in]keyThe keycode.
[in]cThe character corresponding to the key code.
[in]ctrlTells if the Ctrl key is down.
[in]altTells if the Alt key is down.
[in]shiftTells if the Shift key is down.

Member Function Documentation

◆ getChar()

castor::String const & castor3d::KeyboardEvent::getChar ( ) const
inline
Returns
The character corresponding to the key code.

◆ getKey()

KeyboardKey castor3d::KeyboardEvent::getKey ( ) const
inline
Returns
The key code.

◆ getKeyboardEventType()

KeyboardEventType castor3d::KeyboardEvent::getKeyboardEventType ( ) const
inline
Returns
The keyboard event type.

◆ isAltDown()

bool castor3d::KeyboardEvent::isAltDown ( ) const
inline
Returns
The Alt key down status.

◆ isCtrlDown()

bool castor3d::KeyboardEvent::isCtrlDown ( ) const
inline
Returns
The Ctrl key down status.

◆ isShiftDown()

bool castor3d::KeyboardEvent::isShiftDown ( ) const
inline
Returns
The Shift key down status.

The documentation for this class was generated from the following file: