mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-10 11:35:19 -05:00
24 lines
533 B
C
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();
|
||
|
};
|
||
|
}
|