ROLAND
0.70
Amstrad Emulator based on Caprice Source rewritten in C++.
|
This class provides Keyboard translaation between CPC/EN/DE/SDL/WIN/LINUX. More...
#include <keytrans.h>
Classes | |
struct | SeqPair |
Public Types | |
enum | Language { German, English } |
Public Member Functions | |
KeyTrans () | |
~KeyTrans () ROLAND_DEFAULT struct JoyAlloc | |
void | init (Language lang=German) |
tUBYTE | get (SDL_Event &event) |
bool | toggleJoystick () |
bool | joystickEnabled () const |
const SeqPair & | sequenceVal () |
bool | hasSequence () |
void | sequenceCatRun () |
Private Attributes | |
SeqPair | mSequence [64] |
uint | mSeqIndex |
JoyAlloc | mJoyAlloc [6] |
bool | mJoyEnabled |
Static Private Attributes | |
static tUBYTE | mTable [320] |
This class provides Keyboard translaation between CPC/EN/DE/SDL/WIN/LINUX.
enum Language |
KeyTrans | ( | ) |
|
inline |
tUBYTE get | ( | SDL_Event & | event | ) |
References KeyTrans::SeqPair::down, KeyTrans::hasSequence(), KeyTrans::SeqPair::keyval, KeyTrans::mSequence, and KeyTrans::mTable.
Referenced by mainloop().
bool hasSequence | ( | ) |
References KeyTrans::SeqPair::keyval, KeyTrans::mSeqIndex, and KeyTrans::mSequence.
Referenced by KeyTrans::get(), KeyTrans::joystickEnabled(), mainloop(), and KeyTrans::sequenceCatRun().
|
inline |
void sequenceCatRun | ( | ) |
References KeyTrans::SeqPair::down, KeyTrans::hasSequence(), KeyTrans::SeqPair::keyval, and KeyTrans::mSequence.
Referenced by KeyTrans::joystickEnabled().
const KeyTrans::SeqPair & sequenceVal | ( | ) |
References KeyTrans::SeqPair::keyval, KeyTrans::mSeqIndex, and KeyTrans::mSequence.
Referenced by KeyTrans::joystickEnabled(), and mainloop().
bool toggleJoystick | ( | ) |
References KeyTrans::mJoyAlloc, KeyTrans::mJoyEnabled, and KeyTrans::mTable.
Referenced by mainloop().
|
private |
Referenced by KeyTrans::KeyTrans(), and KeyTrans::toggleJoystick().
|
private |
Referenced by KeyTrans::joystickEnabled(), KeyTrans::KeyTrans(), and KeyTrans::toggleJoystick().
|
private |
Referenced by KeyTrans::hasSequence(), KeyTrans::KeyTrans(), and KeyTrans::sequenceVal().
|
private |
Referenced by KeyTrans::get(), KeyTrans::hasSequence(), KeyTrans::KeyTrans(), KeyTrans::sequenceCatRun(), and KeyTrans::sequenceVal().
|
staticprivate |
Referenced by KeyTrans::get(), KeyTrans::KeyTrans(), and KeyTrans::toggleJoystick().