mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-01-24 08:44:48 +01:00
22 lines
361 B
C++
22 lines
361 B
C++
#pragma once
|
|
|
|
#include "InputHandler.h"
|
|
|
|
class JoyAxisHandler : public InputHandler
|
|
{
|
|
public:
|
|
JoyAxisHandler(SDL_JoystickID joyid, Uint8 axis, Sint16 min, Sint16 max);
|
|
bool update(SDL_Event &e);
|
|
bool pressed();
|
|
void reset();
|
|
|
|
private:
|
|
SDL_JoystickID joyid_;
|
|
Uint8 axis_;
|
|
Sint16 min_;
|
|
Sint16 max_;
|
|
|
|
bool pressed_;
|
|
};
|
|
|