Files
Bachelorarbeit-Rover/lib/ControllPad/controlPadInput.h
T
2023-04-02 17:03:24 +02:00

43 lines
711 B
C++

/**
* @file controlPadInput.h
* @author Alexander Klein (alex@kleiax.de)
* @brief
* @version 0.1
* @date 2023-03-30
*
* @copyright Copyright (c) 2023
*
*/
#ifndef CONTROL_PAD_INPUT_H
#define CONTROL_PAD_INPUT_H
#include <stdint.h>
struct ControlPadInput {
uint8_t buttons;
uint8_t x;
uint8_t y;
uint8_t counter;
};
class ControlPadButton {
public:
enum PadButton {
Left,
Right,
Up,
Down,
Yes,
No,
Action
};
static bool isControlPadButtonPressed(const ControlPadInput *input, PadButton button) {
return false;
}
};
#endif // CONTROL_PAD_INPUT_H