Castor3D
..
|
Classe utilisée pour gérer les évènements utilisateur. Plus de détails...
Fonctions membres publiques | |
Mouse events | |
C3D_API bool | FireMouseMove (Castor::Position const &p_position) |
C3D_API bool | FireMouseButtonPushed (MouseButton p_button) |
C3D_API bool | FireMouseButtonReleased (MouseButton p_button) |
C3D_API bool | FireMouseWheel (Castor::Position const &p_offsets) |
Keyboard events | |
C3D_API bool | FireKeyDown (KeyboardKey p_key, bool p_ctrl, bool p_alt, bool p_shift) |
C3D_API bool | FireKeyUp (KeyboardKey p_key, bool p_ctrl, bool p_alt, bool p_shift) |
C3D_API bool | FireChar (KeyboardKey p_key, Castor::String const &p_char) |
Fonctions membres protégées | |
std::vector< EventHandlerSPtr > | DoGetHandlers () const |
void | DoAddHandler (EventHandlerSPtr p_handler) |
void | DoRemoveHandler (EventHandlerSPtr p_handler) |
Attributs protégés | |
std::mutex | m_mutexHandlers |
Le mutex de protection du tableau de gestionnaires. Plus de détails... | |
std::vector< EventHandlerSPtr > | m_handlers |
Le tableau de gestionnaires. Plus de détails... | |
General | |
C3D_API | UserInputListener (Engine &p_engine, Castor::String const &p_name) |
virtual C3D_API | ~UserInputListener () |
C3D_API bool | Initialise () |
C3D_API void | Cleanup () |
C3D_API void | ProcessEvents () |
Castor::Position const & | GetMousePosition () const |
EventHandlerSPtr | GetActiveControl () const |
EventHandlerSPtr | GetFocusedControl () const |
Classe utilisée pour gérer les évènements utilisateur.
C3D_API Castor3D::UserInputListener::UserInputListener | ( | Engine & | p_engine, |
Castor::String const & | p_name | ||
) |
|
virtual |
C3D_API void Castor3D::UserInputListener::Cleanup | ( | ) |
|
inlineprotected |
Références m_handlers, et m_mutexHandlers.
|
inlineprotected |
Références m_handlers, et m_mutexHandlers.
|
inlineprotected |
Références C3D_API, m_handlers, et m_mutexHandlers.
C3D_API bool Castor3D::UserInputListener::FireChar | ( | KeyboardKey | p_key, |
Castor::String const & | p_char | ||
) |
C3D_API bool Castor3D::UserInputListener::FireKeyDown | ( | KeyboardKey | p_key, |
bool | p_ctrl, | ||
bool | p_alt, | ||
bool | p_shift | ||
) |
C3D_API bool Castor3D::UserInputListener::FireKeyUp | ( | KeyboardKey | p_key, |
bool | p_ctrl, | ||
bool | p_alt, | ||
bool | p_shift | ||
) |
C3D_API bool Castor3D::UserInputListener::FireMouseButtonPushed | ( | MouseButton | p_button | ) |
C3D_API bool Castor3D::UserInputListener::FireMouseButtonReleased | ( | MouseButton | p_button | ) |
C3D_API bool Castor3D::UserInputListener::FireMouseMove | ( | Castor::Position const & | p_position | ) |
C3D_API bool Castor3D::UserInputListener::FireMouseWheel | ( | Castor::Position const & | p_offsets | ) |
|
inline |
Retrieves the active control
|
inline |
Retrieves the focused control
Références C3D_API, FireChar(), FireKeyDown(), FireKeyUp(), FireMouseButtonPushed(), FireMouseButtonReleased(), FireMouseMove(), et FireMouseWheel().
|
inline |
Références Castor3D::MouseState::m_position.
C3D_API bool Castor3D::UserInputListener::Initialise | ( | ) |
C3D_API void Castor3D::UserInputListener::ProcessEvents | ( | ) |
|
protected |
Le tableau de gestionnaires.
Référencé par DoAddHandler(), DoGetHandlers(), et DoRemoveHandler().
|
mutableprotected |
Le mutex de protection du tableau de gestionnaires.
Référencé par DoAddHandler(), DoGetHandlers(), et DoRemoveHandler().