libElysianVMU 1.6.0
Full-featured, accurate, cross-platform library emulating the Dreamcast's Visual Memory Unit
Loading...
Searching...
No Matches
evmu_gamepad.h File Reference

Go to the source code of this file.

Data Structures

struct  EvmuGamepadClass
 
struct  EvmuGamepad
 

Macros

#define EVMU_GAMEPAD_NAME   "gamepad"
 
Type System

Type UUID and cast operators

#define EVMU_GAMEPAD_TYPE   (GBL_TYPEID(EvmuGamepad))
 
#define EVMU_GAMEPAD(self)   (GBL_CAST(EvmuGamepad, self))
 
#define EVMU_GAMEPAD_CLASS(klass)   (GBL_CLASS_CAST(EvmuGamepad, klass))
 
#define EVMU_GAMEPAD_GET_CLASS(self)   (GBL_CLASSOF(EvmuGamepad, self))
 

Functions

GblType EvmuGamepad_type (void)
 

Detailed Description

EvmuGamepad and Port 3 Button Management.

This file provides an API for accessing and setting the button states of a Gamepad. This is done via the EvmuGamepad instance.

To implement a new input back-end, you may simply set the current state variables based on the source input device; however, a more sophisticated method would be to either reimplement EvmuGamepadClass::pFnPollButtons with this logic, or to connect a closure to the "updatingButtons" signal, which will synchronize external polling and internal update logic.

Definition in file evmu_gamepad.h.

Macro Definition Documentation

◆ EVMU_GAMEPAD

#define EVMU_GAMEPAD (   self)    (GBL_CAST(EvmuGamepad, self))

Cast GblInstance to EvmuGamepad.

Definition at line 31 of file evmu_gamepad.h.

◆ EVMU_GAMEPAD_CLASS

#define EVMU_GAMEPAD_CLASS (   klass)    (GBL_CLASS_CAST(EvmuGamepad, klass))

Cast GblClass to EvmuGamepadClass.

Definition at line 32 of file evmu_gamepad.h.

◆ EVMU_GAMEPAD_GET_CLASS

#define EVMU_GAMEPAD_GET_CLASS (   self)    (GBL_CLASSOF(EvmuGamepad, self))

Function-style class accessor

Definition at line 33 of file evmu_gamepad.h.

◆ EVMU_GAMEPAD_NAME

#define EVMU_GAMEPAD_NAME   "gamepad"

Gamepad GblObject name.

Definition at line 36 of file evmu_gamepad.h.

◆ EVMU_GAMEPAD_TYPE

#define EVMU_GAMEPAD_TYPE   (GBL_TYPEID(EvmuGamepad))

GblType UUID for EvmuGamepad.

Definition at line 30 of file evmu_gamepad.h.

Function Documentation

◆ EvmuGamepad_type()

GblType EvmuGamepad_type ( void  )

Returns the GblType UUID associated with EvmuGamepad.