mirror of
https://github.com/JorjBauer/aiie.git
synced 2024-10-30 01:26:36 +00:00
99d0c8e72c
* New BIOS interface * New linux framebuffer version * Unified linuxfb and SDL with Teensy * Abstracted VM RAM * Fixed disk image corruption due to bad cache handling * Variable CPU speed support
35 lines
622 B
C++
35 lines
622 B
C++
#ifndef __TEENSY_KEYBOARD_H
|
|
#define __TEENSY_KEYBOARD_H
|
|
|
|
#include "physicalkeyboard.h"
|
|
|
|
class TeensyKeyboard : public PhysicalKeyboard {
|
|
public:
|
|
TeensyKeyboard(VMKeyboard *k);
|
|
virtual ~TeensyKeyboard();
|
|
|
|
// Interface used by the VM...
|
|
virtual void maintainKeyboard();
|
|
|
|
// Interface used by the BIOS...
|
|
virtual bool kbhit();
|
|
virtual int8_t read();
|
|
|
|
|
|
private:
|
|
void pressedKey(uint8_t key);
|
|
void releasedKey(uint8_t key);
|
|
|
|
private:
|
|
bool leftShiftPressed;
|
|
bool rightShiftPressed;
|
|
bool ctrlPressed;
|
|
bool capsLock;
|
|
bool leftApplePressed;
|
|
bool rightApplePressed;
|
|
|
|
int8_t numPressed;
|
|
};
|
|
|
|
#endif
|