Logo
Public Member Functions | Public Attributes | List of all members
SharpKmyIO::Controller Class Reference

#include <Peripheral.h>

Public Member Functions

 Controller ()
 
void Release ()
 
void addInput (System::String ^name, int deviceId, INPUTID inputId, float threshold)
 
float getValue (System::String ^name)
 
float getOldValue (System::String ^name)
 
bool isDown (System::String ^name)
 
bool isUp (System::String ^name)
 
bool isHold (System::String ^name)
 
bool isRelease (System::String ^name)
 
bool isDownAny (int deviceId)
 
void update (float elapsed)
 
void setGamePadID (int id, bool force)
 

Public Attributes

kmyIO::Controller * obj = nullptr
 

Constructor & Destructor Documentation

◆ Controller()

SharpKmyIO::Controller::Controller ( )

Member Function Documentation

◆ addInput()

void SharpKmyIO::Controller::addInput ( System::String ^  name,
int  deviceId,
INPUTID  inputId,
float  threshold 
)

◆ getOldValue()

float SharpKmyIO::Controller::getOldValue ( System::String ^  name)

◆ getValue()

float SharpKmyIO::Controller::getValue ( System::String ^  name)

◆ isDown()

bool SharpKmyIO::Controller::isDown ( System::String ^  name)

◆ isDownAny()

bool SharpKmyIO::Controller::isDownAny ( int  deviceId)

◆ isHold()

bool SharpKmyIO::Controller::isHold ( System::String ^  name)

◆ isRelease()

bool SharpKmyIO::Controller::isRelease ( System::String ^  name)

◆ isUp()

bool SharpKmyIO::Controller::isUp ( System::String ^  name)

◆ Release()

void SharpKmyIO::Controller::Release ( )

◆ setGamePadID()

void SharpKmyIO::Controller::setGamePadID ( int  id,
bool  force 
)

◆ update()

void SharpKmyIO::Controller::update ( float  elapsed)

Member Data Documentation

◆ obj

kmyIO::Controller* SharpKmyIO::Controller::obj = nullptr