|
XenevaOS
|
#include "doomgeneric.h"#include <_xeneva.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <chitralekha.h>#include <widgets/base.h>#include <widgets/window.h>#include <keycode.h>#include <sys/_keproc.h>#include <sys/_kefile.h>#include <sys/_ketime.h>#include <sys/iocodes.h>
Macros | |
| #define | DOOM_KEY_UPARROW 0xad |
| #define | DOOM_KEY_DOWNARROW 0xaf |
| #define | DOOM_KEY_LEFTARROW 0xac |
| #define | DOOM_KEY_RIGHTARROW 0xae |
| #define | DOOM_KEY_ESCAPE 27 |
| #define | DOOM_KEY_ENTER 13 |
| #define | DOOM_KEY_FIRE 0xa3 |
| #define | DOOM_KEY_USE 0xa2 |
| #define | DOOM_KEY_RSHIFT (0x80 + 0x36) |
| #define | DOOM_CHROME_H 26 |
| #define | DOOM_CHROME_BTN_Y0 2 |
| #define | DOOM_CHROME_BTN_Y1 24 |
Functions | |
| void | I_Quit (void) |
| void | ChWindowPaintTitlebar (ChWindow *win) |
| void | DG_Init () |
| void | DG_DrawFrame () |
| void | DG_SleepMs (uint32_t ms) |
| uint32_t | DG_GetTicksMs () |
| int | DG_GetKey (int *pressed, unsigned char *key) |
| void | DG_StatBegin (int id) |
| void | DG_StatEnd (int id) |
| void | DG_StatReport (void) |
| void | DG_CloseWindow (void) |
| void | DG_SetWindowTitle (const char *title) |
| #define DOOM_CHROME_BTN_Y0 2 |
| #define DOOM_CHROME_BTN_Y1 24 |
| #define DOOM_CHROME_H 26 |
| #define DOOM_KEY_DOWNARROW 0xaf |
| #define DOOM_KEY_ENTER 13 |
| #define DOOM_KEY_ESCAPE 27 |
| #define DOOM_KEY_FIRE 0xa3 |
| #define DOOM_KEY_LEFTARROW 0xac |
| #define DOOM_KEY_RIGHTARROW 0xae |
| #define DOOM_KEY_RSHIFT (0x80 + 0x36) |
| #define DOOM_KEY_UPARROW 0xad |
doomgeneric platform port for XenevaOS Implements the doomgeneric API using XenevaOS + Chitralekha APIs.
Notes:
| #define DOOM_KEY_USE 0xa2 |
| void ChWindowPaintTitlebar | ( | ChWindow * | win | ) |
| void DG_CloseWindow | ( | void | ) |
| void DG_DrawFrame | ( | ) |
| int DG_GetKey | ( | int * | pressed, |
| unsigned char * | key | ||
| ) |
| uint32_t DG_GetTicksMs | ( | void | ) |
| void DG_Init | ( | ) |
| void DG_SetWindowTitle | ( | const char * | title | ) |
| void DG_SleepMs | ( | uint32_t | ms | ) |
| void DG_StatBegin | ( | int | id | ) |
| void DG_StatEnd | ( | int | id | ) |
| void DG_StatReport | ( | void | ) |
| void I_Quit | ( | void | ) |