43 lines
719 B
C++
43 lines
719 B
C++
/**
|
|
* @file controllPadInput.h
|
|
* @author Alexander Klein (alex@kleiax.de)
|
|
* @brief
|
|
* @version 0.1
|
|
* @date 2023-03-30
|
|
*
|
|
* @copyright Copyright (c) 2023
|
|
*
|
|
*/
|
|
|
|
#ifndef CONTROLL_PAD_INPUT_H
|
|
#define CONTROLL_PAD_INPUT_H
|
|
|
|
#include <stdint.h>
|
|
|
|
struct ControllPadInput {
|
|
uint8_t buttons;
|
|
uint8_t x;
|
|
uint8_t y;
|
|
uint8_t counter;
|
|
};
|
|
|
|
|
|
class ControllPadButton {
|
|
public:
|
|
enum PadButton {
|
|
Left,
|
|
Right,
|
|
Up,
|
|
Down,
|
|
Yes,
|
|
No,
|
|
Action
|
|
};
|
|
|
|
static bool isControllPadButtonPressed(const ControllPadInput *input, PadButton button) {
|
|
return false;
|
|
}
|
|
};
|
|
|
|
#endif // CONTROLL_PAD_INPUT_H
|