mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-08-13 17:03:47 -04:00
d24c8453db
subrepo: subdir: "libultraship" merged: "a484cda98" upstream: origin: "https://github.com/HarbourMasters/libultraship.git" branch: "main" commit: "a484cda98" git-subrepo: version: "0.4.1" origin: "???" commit: "???"
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();
|
|
};
|
|
}
|