29#include "../lib/part.h"
31#define PART_GAMEPAD_Name "Gamepad"
35 std::string
GetAboutInfo(
void)
override {
return "L.C. Gamboa \n <lcgamboa@yahoo.com>"; };
36 cpart_gamepad(
const unsigned x,
const unsigned y,
const char* name,
const char* type,
board* pboard_,
40 void DrawOutput(
const unsigned int index)
override;
42 void OnMouseButtonPress(
unsigned int inputId,
unsigned int button,
unsigned int x,
unsigned int y,
43 unsigned int state)
override;
44 void OnMouseButtonRelease(
unsigned int inputId,
unsigned int button,
unsigned int x,
unsigned int y,
45 unsigned int state)
override;
46 void OnMouseMove(
unsigned int inputId,
unsigned int button,
unsigned int x,
unsigned int y,
47 unsigned int state)
override;
48 void EvKeyPress(
unsigned int key,
unsigned int mask)
override;
49 void EvKeyRelease(
unsigned int key,
unsigned int mask)
override;
54 unsigned short GetInputId(
char* name)
override;
59 unsigned char output_pins[8];
60 unsigned char output_value[6];
61 unsigned char value[2];
Board class.
Definition board.h:111
Definition input_gamepad.h:33
void EvKeyRelease(unsigned int key, unsigned int mask) override
Event handler on the part.
Definition input_gamepad.cc:380
void EvKeyPress(unsigned int key, unsigned int mask) override
Event handler on the part.
Definition input_gamepad.cc:291
void OnMouseButtonRelease(unsigned int inputId, unsigned int button, unsigned int x, unsigned int y, unsigned int state) override
Event handler on the part.
Definition input_gamepad.cc:229
void ConfigurePropertiesWindow(void) override
Called to configure the properties window.
Definition input_gamepad.cc:507
unsigned short GetInputId(char *name) override
return the input ids numbers of names used in input map
Definition input_gamepad.cc:434
void PostInit(void) override
Called once on part after initialization.
Definition input_gamepad.cc:100
void RegisterRemoteControl(void) override
Register remote control variables.
Definition input_gamepad.cc:77
void ReadPropertiesWindow(void) override
Called when properties window close.
Definition input_gamepad.cc:518
std::string GetAboutInfo(void) override
Return the about information of part.
Definition input_gamepad.h:35
void DrawOutput(const unsigned int index) override
Called to draw every output.
Definition input_gamepad.cc:106
void ReadPreferences(std::string value) override
Called whe configuration file load preferences.
Definition input_gamepad.cc:502
void PreProcess(void) override
Called every start of CPU process.
Definition input_gamepad.cc:171
void OnMouseMove(unsigned int inputId, unsigned int button, unsigned int x, unsigned int y, unsigned int state) override
Event handler on the part.
Definition input_gamepad.cc:265
void OnMouseButtonPress(unsigned int inputId, unsigned int button, unsigned int x, unsigned int y, unsigned int state) override
Event handler on the part.
Definition input_gamepad.cc:182
std::string WritePreferences(void) override
Called to save part preferences in configuration file.
Definition input_gamepad.cc:493
unsigned short GetOutputId(char *name) override
return the output ids numbers of names used in output map
Definition input_gamepad.cc:455
PART class.
Definition part.h:49