26#ifndef PART_PUSH_BUTTONS_H
27#define PART_PUSH_BUTTONS_H
29#include "../devices/swbounce.h"
30#include "../lib/part.h"
32#define PART_PUSH_BUTTONS_Name "Push Buttons"
36 std::string
GetAboutInfo(
void)
override {
return "L.C. Gamboa \n <lcgamboa@yahoo.com>"; };
37 cpart_pbuttons(
const unsigned x,
const unsigned y,
const char* name,
const char* type,
board* pboard_,
40 void DrawOutput(
const unsigned int index)
override;
43 void Reset(
void)
override;
44 void OnMouseButtonPress(
unsigned int inputId,
unsigned int button,
unsigned int x,
unsigned int y,
45 unsigned int state)
override;
46 void OnMouseButtonRelease(
unsigned int inputId,
unsigned int button,
unsigned int x,
unsigned int y,
47 unsigned int state)
override;
53 unsigned short GetInputId(
char* name)
override;
55 void SpinChange(
const char* controlname,
int value)
override;
59 void ChangeSize(
const unsigned int sz);
61 unsigned char output_pins[8];
62 unsigned char output_value[8];
Board class.
Definition board.h:111
PART class.
Definition part.h:49