atelier.common.event

Event

Members

Enums

KeyButton
enum KeyButton

List of keyboard buttons.

MouseButton
enum MouseButton

List of mouse buttons.

Functions

destroyEvents
void destroyEvents()

Closes everything mouse, keyboard or controller related.

getButtonDown
bool getButtonDown(KeyButton button)

Check whether the key associated with the ID is pressed. \ This function resets the value to false.

getButtonDown
bool getButtonDown(MouseButton button)

Check whether the mouse button associated with the ID is pressed. \ This function resets the value to false.

getClipboard
string getClipboard()

Returns the content of the clipboard

getMousePos
Vec2f getMousePos()

Returns the position of the mouse relative to the window.

hasClipboard
bool hasClipboard()

Check if the clipboard isn't empty

initializeEvents
void initializeEvents()

Initialize everything mouse, keyboard or controller related.

isButtonDown
bool isButtonDown(KeyButton button)

Check whether the key associated with the ID is pressed. \ Do not reset the value.

isButtonDown
bool isButtonDown(MouseButton button)

Check whether the mouse button associated with the ID is pressed. \ Do not reset the value.

isRunning
bool isRunning()

Check if the application's still running.

processEvents
bool processEvents()

Process and dispatch window, input, etc events.

sendCustomEvent
void sendCustomEvent(string id, void* data)

Send a custom event.

sendEvent
void sendEvent(Event.Type eventType)

Dispatch an event to GUIs.

sendEvent
void sendEvent(Event event)

Dispatch an event to GUIs.

setClipboard
void setClipboard(string text)

Fill the clipboard

signalHandler
void signalHandler(int sig)

Capture interruptions.

stopApplication
void stopApplication()

Tells the application to finish.

updateEvents
void updateEvents(float deltaTime)

Updates everything mouse, keyboard or controller related.

Structs

Event
struct Event

Event structure passed on onEvent() methods.

Meta

License

Zlib

Authors

Enalye