cmdfx 0.2.1
Lightweight game engine for your terminal
Loading...
Searching...
No Matches
CmdFX_ButtonEvent Struct Reference

Called when a button is clicked. More...

#include <events.h>

Public Attributes

CmdFX_MouseEventmouseEvent
 The mouse event that triggered the button event.
 
void * button
 The button that was clicked.
 

Detailed Description

Called when a button is clicked.

The data is a pointer to a struct CmdFX_ButtonEvent.

Member Data Documentation

◆ button

void* CmdFX_ButtonEvent::button

The button that was clicked.

This is a pointer to the button that was clicked.

◆ mouseEvent

CmdFX_MouseEvent* CmdFX_ButtonEvent::mouseEvent

The mouse event that triggered the button event.

This is a pointer to the mouse event that triggered the button event. This event is also passed to the event callback.


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