Shipwright/libultraship/libultraship/KeyboardController.h

24 lines
533 B
C++

#pragma once
#include "Controller.h"
#include <string>
namespace Ship {
class KeyboardController : public Controller {
public:
KeyboardController(int32_t dwControllerNumber);
~KeyboardController();
void ReadFromSource();
void WriteToSource(ControllerCallback* controller);
bool PressButton(int32_t dwScancode);
bool ReleaseButton(int32_t dwScancode);
void ReleaseAllButtons();
protected:
std::string GetControllerType();
std::string GetConfSection();
std::string GetBindingConfSection();
};
}