openMSX
Public Member Functions | Static Public Attributes | List of all members
openmsx::MouseState Class Referencefinal
Inheritance diagram for openmsx::MouseState:
Inheritance graph
[legend]
Collaboration diagram for openmsx::MouseState:
Collaboration graph
[legend]

Public Member Functions

 MouseState ()=default
 
 MouseState (EmuTime::param time_, int deltaX_, int deltaY_, uint8_t press_, uint8_t release_)
 
int getDeltaX () const
 
int getDeltaY () const
 
uint8_t getPress () const
 
uint8_t getRelease () const
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 
- Public Member Functions inherited from openmsx::StateChange
virtual ~StateChange ()=default
 
EmuTime::param getTime () const
 
template<typename Archive >
void serialize (Archive &ar, unsigned)
 

Static Public Attributes

static int absHostX = 0
 
static int absHostY = 0
 

Additional Inherited Members

- Protected Member Functions inherited from openmsx::StateChange
 StateChange ()
 
 StateChange (EmuTime::param time_)
 

Detailed Description

Definition at line 25 of file Mouse.cc.

Constructor & Destructor Documentation

◆ MouseState() [1/2]

openmsx::MouseState::MouseState ( )
default

◆ MouseState() [2/2]

openmsx::MouseState::MouseState ( EmuTime::param  time_,
int  deltaX_,
int  deltaY_,
uint8_t  press_,
uint8_t  release_ 
)
inline

Definition at line 29 of file Mouse.cc.

Member Function Documentation

◆ getDeltaX()

int openmsx::MouseState::getDeltaX ( ) const
inline

Definition at line 34 of file Mouse.cc.

◆ getDeltaY()

int openmsx::MouseState::getDeltaY ( ) const
inline

Definition at line 35 of file Mouse.cc.

◆ getPress()

uint8_t openmsx::MouseState::getPress ( ) const
inline

Definition at line 36 of file Mouse.cc.

◆ getRelease()

uint8_t openmsx::MouseState::getRelease ( ) const
inline

Definition at line 37 of file Mouse.cc.

◆ serialize()

template<typename Archive >
void openmsx::MouseState::serialize ( Archive &  ar,
unsigned  version 
)
inline

Definition at line 38 of file Mouse.cc.

References absHostX, and absHostY.

Member Data Documentation

◆ absHostX

int openmsx::MouseState::absHostX = 0
inlinestatic

Definition at line 67 of file Mouse.cc.

Referenced by serialize(), and openmsx::Mouse::serialize().

◆ absHostY

int openmsx::MouseState::absHostY = 0
static

Definition at line 67 of file Mouse.cc.

Referenced by serialize(), and openmsx::Mouse::serialize().


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