26#ifndef PART_GAMEPAD_AN_H
27#define PART_GAMEPAD_AN_H
29#include "../lib/part.h"
31#define PART_GAMEPAD_AN_Name "Gamepad (Analogic)"
35 std::string
GetAboutInfo(
void)
override {
return "L.C. Gamboa \n <lcgamboa@yahoo.com>"; };
36 cpart_gamepad_an(
const unsigned x,
const unsigned y,
const char* name,
const char* type,
board* pboard_,
39 void DrawOutput(
const unsigned int index)
override;
41 void Reset(
void)
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 EvKeyPress(
unsigned int key,
unsigned int mask)
override;
47 void EvKeyRelease(
unsigned int key,
unsigned int mask)
override;
52 unsigned short GetInputId(
char* name)
override;
58 unsigned char output_pins[1];
59 float output_value_an;
60 float output_value_an_;
61 unsigned char output_value[5];
Board class.
Definition board.h:111
Definition input_gamepad_an.h:33
void ReadPropertiesWindow(void) override
Called when properties window close.
Definition input_gamepad_an.cc:344
void EvKeyRelease(unsigned int key, unsigned int mask) override
Event handler on the part.
Definition input_gamepad_an.cc:256
void ReadPreferences(std::string value) override
Called whe configuration file load preferences.
Definition input_gamepad_an.cc:329
void RegisterRemoteControl(void) override
Register remote control variables.
Definition input_gamepad_an.cc:64
void DrawOutput(const unsigned int index) override
Called to draw every output.
Definition input_gamepad_an.cc:98
void ConfigurePropertiesWindow(void) override
Called to configure the properties window.
Definition input_gamepad_an.cc:334
std::string WritePreferences(void) override
Called to save part preferences in configuration file.
Definition input_gamepad_an.cc:321
void PreProcess(void) override
Called every start of CPU process.
Definition input_gamepad_an.cc:151
std::string GetAboutInfo(void) override
Return the about information of part.
Definition input_gamepad_an.h:35
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_an.cc:200
unsigned short GetInputId(char *name) override
return the input ids numbers of names used in input map
Definition input_gamepad_an.cc:286
void EvKeyPress(unsigned int key, unsigned int mask) override
Event handler on the part.
Definition input_gamepad_an.cc:226
unsigned short GetOutputId(char *name) override
return the output ids numbers of names used in output map
Definition input_gamepad_an.cc:302
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_an.cc:174
void Reset(void) override
Reset part status.
Definition input_gamepad_an.cc:77
PART class.
Definition part.h:49