37 lines
836 B
C
37 lines
836 B
C
|
#ifndef LIBRARY_INTERNAL_H
|
||
|
#define LIBRARY_INTERNAL_H
|
||
|
|
||
|
#include "EventType.h"
|
||
|
#include "KeyCode.h"
|
||
|
#include "LayoutVersion.h"
|
||
|
|
||
|
//TODO: documentation
|
||
|
|
||
|
void setLayoutVersion(LayoutVersion newValue);
|
||
|
|
||
|
void setTriggerReset(int newValue);
|
||
|
|
||
|
void setCharactersPerLine(int newValue);
|
||
|
|
||
|
void setCharactersPerRow(int newValue);
|
||
|
|
||
|
/**
|
||
|
* call a specific event.
|
||
|
* @param type
|
||
|
* @return true if there is a handler registere
|
||
|
*/
|
||
|
bool callEvent(EventType type);
|
||
|
|
||
|
void setMousePosition(int x, int y);
|
||
|
|
||
|
void buttonPressed(KeyCode keyCode);
|
||
|
|
||
|
// Shared Memory Layout
|
||
|
// --------------------------------------------------------------------
|
||
|
// struct ControlRegisters
|
||
|
// char reserved[1024]
|
||
|
// Interrupt Vector Table [64]
|
||
|
// text area [max_textMode_width * max_textMode_height]
|
||
|
// pixel area [max_height_pixels * max_height_pixels * sizeof(uint_32)]
|
||
|
|
||
|
#endif
|