Shellminator V3.0.1
Simple Terminal
Loading...
Searching...
No Matches
Shellminator::shellEvent_t Struct Reference

Shell event structure. More...

#include <Shellminator.hpp>

Collaboration diagram for Shellminator::shellEvent_t:

Public Attributes

shellEventType_t type
 Identifies the type of the event. More...
 
eventCodes_t eventCode
 Stores the event code in case of SHELL_EVENT_CODED_KEY or SHELL_EVENT_MOUSE type. More...
 
uint8_t data
 In case of SHELL_EVENT_KEY type, stores the corresponding character to the pressed key. More...
 
uint8_t x
 In case of SHELL_EVENT_MOUSE type, stores the X-coordinate of the mouse event. More...
 
uint8_t y
 In case of SHELL_EVENT_MOUSE type, stores the Y-coordinate of the mouse event. More...
 

Detailed Description

Shell event structure.

This structure holds the necessary fields to store and decode shell events. It is used to communicate with the attached Screen objects.

Definition at line 722 of file Shellminator.hpp.

Member Data Documentation

◆ data

uint8_t Shellminator::shellEvent_t::data

In case of SHELL_EVENT_KEY type, stores the corresponding character to the pressed key.

Note
Case sensitive!

Definition at line 725 of file Shellminator.hpp.

◆ eventCode

eventCodes_t Shellminator::shellEvent_t::eventCode

Stores the event code in case of SHELL_EVENT_CODED_KEY or SHELL_EVENT_MOUSE type.

Definition at line 724 of file Shellminator.hpp.

◆ type

shellEventType_t Shellminator::shellEvent_t::type

Identifies the type of the event.

Definition at line 723 of file Shellminator.hpp.

◆ x

uint8_t Shellminator::shellEvent_t::x

In case of SHELL_EVENT_MOUSE type, stores the X-coordinate of the mouse event.

Definition at line 726 of file Shellminator.hpp.

◆ y

uint8_t Shellminator::shellEvent_t::y

In case of SHELL_EVENT_MOUSE type, stores the Y-coordinate of the mouse event.

Definition at line 727 of file Shellminator.hpp.