Kale
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
Kale::EventHandler Class Reference

#include <Events.hpp>

+ Inheritance diagram for Kale::EventHandler:

Public Member Functions

virtual void onWindowResize (Vector2ui oldSize, Vector2ui newSize)
 
virtual void onWindowLostFocus ()
 
virtual void onWindowGainedFocus ()
 
virtual void onControllerConnect (unsigned int controller)
 
virtual void onControllerDisconnect (unsigned int controller)
 
virtual void onControllerButtonPress (unsigned int controller, ControllerButton button)
 
virtual void onControllerButtonRelease (unsigned int controller, ControllerButton button)
 
virtual void onControllerHandle (unsigned int controller, ControllerAxis handle, float position)
 
virtual void onControllerJoystick (unsigned int controller, ControllerAxis joystick, Vector2f position)
 
virtual void onKeyPress (Key key)
 
virtual void onKeyRelease (Key key)
 
virtual void onMouseMove (Vector2f pos)
 
virtual void onMouseScroll (float scroll)
 
virtual void onLeftClick ()
 
virtual void onMiddleClick ()
 
virtual void onRightClick ()
 
virtual void onLeftClickRelease ()
 
virtual void onMiddleClickRelease ()
 
virtual void onRightClickRelease ()
 
virtual void onTouchBegin (unsigned int touch, Vector2f pos)
 
virtual void onTouchMove (unsigned int touch, Vector2f pos)
 
virtual void onTouchEnd (unsigned int touch)
 

Friends

class Window
 

Detailed Description

Represents any class intended to handle events

Definition at line 56 of file Events.hpp.

Member Function Documentation

◆ onControllerButtonPress()

virtual void Kale::EventHandler::onControllerButtonPress ( unsigned int controller,
ControllerButton button )
inlinevirtual

Called when the event is fired

Definition at line 88 of file Events.hpp.

◆ onControllerButtonRelease()

virtual void Kale::EventHandler::onControllerButtonRelease ( unsigned int controller,
ControllerButton button )
inlinevirtual

Called when the event is fired

Definition at line 93 of file Events.hpp.

◆ onControllerConnect()

virtual void Kale::EventHandler::onControllerConnect ( unsigned int controller)
inlinevirtual

Called when the event is fired

Definition at line 78 of file Events.hpp.

◆ onControllerDisconnect()

virtual void Kale::EventHandler::onControllerDisconnect ( unsigned int controller)
inlinevirtual

Called when the event is fired

Definition at line 83 of file Events.hpp.

◆ onControllerHandle()

virtual void Kale::EventHandler::onControllerHandle ( unsigned int controller,
ControllerAxis handle,
float position )
inlinevirtual

Called when the event is fired

Definition at line 98 of file Events.hpp.

◆ onControllerJoystick()

virtual void Kale::EventHandler::onControllerJoystick ( unsigned int controller,
ControllerAxis joystick,
Vector2f position )
inlinevirtual

Called when the event is fired

Definition at line 103 of file Events.hpp.

◆ onKeyPress()

virtual void Kale::EventHandler::onKeyPress ( Key key)
inlinevirtual

Called when the event is fired

Definition at line 108 of file Events.hpp.

◆ onKeyRelease()

virtual void Kale::EventHandler::onKeyRelease ( Key key)
inlinevirtual

Called when the event is fired

Definition at line 113 of file Events.hpp.

◆ onLeftClick()

virtual void Kale::EventHandler::onLeftClick ( )
inlinevirtual

Called when the event is fired

Definition at line 128 of file Events.hpp.

◆ onLeftClickRelease()

virtual void Kale::EventHandler::onLeftClickRelease ( )
inlinevirtual

Called when the event is fired

Definition at line 143 of file Events.hpp.

◆ onMiddleClick()

virtual void Kale::EventHandler::onMiddleClick ( )
inlinevirtual

Called when the event is fired

Definition at line 133 of file Events.hpp.

◆ onMiddleClickRelease()

virtual void Kale::EventHandler::onMiddleClickRelease ( )
inlinevirtual

Called when the event is fired

Definition at line 148 of file Events.hpp.

◆ onMouseMove()

virtual void Kale::EventHandler::onMouseMove ( Vector2f pos)
inlinevirtual

Called when the event is fired

Definition at line 118 of file Events.hpp.

◆ onMouseScroll()

virtual void Kale::EventHandler::onMouseScroll ( float scroll)
inlinevirtual

Called when the event is fired

Definition at line 123 of file Events.hpp.

◆ onRightClick()

virtual void Kale::EventHandler::onRightClick ( )
inlinevirtual

Called when the event is fired

Definition at line 138 of file Events.hpp.

◆ onRightClickRelease()

virtual void Kale::EventHandler::onRightClickRelease ( )
inlinevirtual

Called when the event is fired

Definition at line 153 of file Events.hpp.

◆ onTouchBegin()

virtual void Kale::EventHandler::onTouchBegin ( unsigned int touch,
Vector2f pos )
inlinevirtual

Called when the event is fired

Definition at line 158 of file Events.hpp.

◆ onTouchEnd()

virtual void Kale::EventHandler::onTouchEnd ( unsigned int touch)
inlinevirtual

Called when the event is fired

Definition at line 168 of file Events.hpp.

◆ onTouchMove()

virtual void Kale::EventHandler::onTouchMove ( unsigned int touch,
Vector2f pos )
inlinevirtual

Called when the event is fired

Definition at line 163 of file Events.hpp.

◆ onWindowGainedFocus()

virtual void Kale::EventHandler::onWindowGainedFocus ( )
inlinevirtual

Called when the event is fired

Definition at line 73 of file Events.hpp.

◆ onWindowLostFocus()

virtual void Kale::EventHandler::onWindowLostFocus ( )
inlinevirtual

Called when the event is fired

Definition at line 68 of file Events.hpp.

◆ onWindowResize()

virtual void Kale::EventHandler::onWindowResize ( Vector2ui oldSize,
Vector2ui newSize )
inlinevirtual

Called when the event is fired

Reimplemented in Kale::Scene, and Kale::OpenGL::Core::ResizeHandler.

Definition at line 63 of file Events.hpp.

Friends And Related Symbol Documentation

◆ Window

friend class Window
friend

Definition at line 170 of file Events.hpp.


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