|
openMSX
|
#include <Keyboard.hh>


Public Member Functions | |
| Keyboard (MSXMotherBoard &motherBoard, Scheduler &scheduler, CommandController &commandController, EventDistributor &eventDistributor, MSXEventDistributor &msxEventDistributor, StateChangeDistributor &stateChangeDistributor, string_ref keyboardType, bool hasKeypad, bool hasYesNoKeys, bool keyGhosting, bool keyGhostingSGCprotected, bool codeKanaLocks, bool graphLocks) | |
| Constructs a new Keyboard object. | |
| virtual | ~Keyboard () |
| const byte * | getKeys () |
| Returns a pointer to the current KeyBoard matrix. | |
| void | transferHostKeyMatrix (const Keyboard &source) |
| template<typename Archive > | |
| void | serialize (Archive &ar, unsigned version) |
Static Public Attributes | |
| static const unsigned | NR_KEYROWS = 16 |
Friends | |
| class | KeyMatrixUpCmd |
| class | KeyMatrixDownCmd |
| class | KeyInserter |
| class | CapsLockAligner |
| class | MsxKeyEventQueue |
Additional Inherited Members | |
Private Member Functions inherited from openmsx::MSXEventListener | |
| virtual | ~MSXEventListener () |
| virtual void | signalEvent (const std::shared_ptr< const Event > &event, EmuTime::param time)=0 |
| This method gets called when an event you are subscribed to occurs. | |
| MSXEventListener () | |
Private Member Functions inherited from openmsx::StateChangeListener | |
| virtual void | signalStateChange (const std::shared_ptr< StateChange > &event)=0 |
| This method gets called when a StateChange event occurs. | |
| virtual void | stopReplay (EmuTime::param time)=0 |
| This method gets called when we switch from replayed events to live events. | |
| StateChangeListener () | |
| virtual | ~StateChangeListener () |
Private Member Functions inherited from openmsx::Schedulable | |
| virtual void | executeUntil (EmuTime::param time, int userData)=0 |
| When the previously registered syncPoint is reached, this method gets called. | |
| virtual void | schedulerDeleted () |
| Just before the the Scheduler is deleted, it calls this method of all the Schedulables that are still registered. | |
| Scheduler & | getScheduler () const |
| EmuTime::param | getCurrentTime () const |
| Convenience method: This is the same as getScheduler().getCurrentTime(). | |
| template<typename Archive > | |
| void | serialize (Archive &ar, unsigned version) |
| Schedulable (Scheduler &scheduler) | |
| virtual | ~Schedulable () |
| void | setSyncPoint (EmuTime::param timestamp, int userData=0) |
| bool | removeSyncPoint (int userData=0) |
| void | removeSyncPoints () |
| bool | pendingSyncPoint (int userData=0) const |
Definition at line 32 of file Keyboard.hh.
| openmsx::Keyboard::Keyboard | ( | MSXMotherBoard & | motherBoard, |
| Scheduler & | scheduler, | ||
| CommandController & | commandController, | ||
| EventDistributor & | eventDistributor, | ||
| MSXEventDistributor & | msxEventDistributor, | ||
| StateChangeDistributor & | stateChangeDistributor, | ||
| string_ref | keyboardType, | ||
| bool | hasKeypad, | ||
| bool | hasYesNoKeys, | ||
| bool | keyGhosting, | ||
| bool | keyGhostingSGCprotected, | ||
| bool | codeKanaLocks, | ||
| bool | graphLocks | ||
| ) |
Constructs a new Keyboard object.
| motherBoard | ref to the motherBoard |
| scheduler | ref to the scheduler |
| commandController | ref to the command controller |
| eventDistributor | ref to the emu event distributor |
| msxEventDistributor | ref to the user input event distributor |
| stateChangeDistributor | ref to the state change distributor |
| keyboardType | contains filename extension of unicode keymap file |
| hasKeypad | turn MSX keypad on/off |
| hasYesNoKeys | this keyboard has (Japanese) Yes/No keys |
| keyGhosting | turn keyGhosting on/off |
| keyGhostingSGCprotected | Shift, Graph and Code are keyGhosting protected |
| codeKanaLocks | CodeKana key behave as a lock key on this machine |
| graphLocks | Graph key behave as a lock key on this machine |
Definition at line 205 of file Keyboard.cc.
References openmsx::MSXMotherBoard::getReverseManager(), openmsx::MSXEventDistributor::registerEventListener(), openmsx::ReverseManager::registerKeyboard(), and openmsx::StateChangeDistributor::registerListener().
|
virtual |
Definition at line 261 of file Keyboard.cc.
References openmsx::MSXEventDistributor::unregisterEventListener(), and openmsx::StateChangeDistributor::unregisterListener().
| const byte * openmsx::Keyboard::getKeys | ( | ) |
Returns a pointer to the current KeyBoard matrix.
Definition at line 268 of file Keyboard.cc.
References NR_KEYROWS.
Referenced by openmsx::KeybDebuggable::read().
| void openmsx::Keyboard::serialize | ( | Archive & | ar, |
| unsigned | version | ||
| ) |
Definition at line 1384 of file Keyboard.cc.
| void openmsx::Keyboard::transferHostKeyMatrix | ( | const Keyboard & | source | ) |
Definition at line 282 of file Keyboard.cc.
References NR_KEYROWS.
|
friend |
Definition at line 113 of file Keyboard.hh.
|
friend |
Definition at line 112 of file Keyboard.hh.
|
friend |
Definition at line 111 of file Keyboard.hh.
|
friend |
Definition at line 110 of file Keyboard.hh.
|
friend |
Definition at line 114 of file Keyboard.hh.
|
static |
Definition at line 36 of file Keyboard.hh.
Referenced by getKeys(), and transferHostKeyMatrix().
1.8.1.2