You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
834 B
C++

#include <lowlevellib.h>
int os_main(int argc, char **argv, char **envp )
{
//llgfx_SetDisplayMode(240,320,16,0);
llgfx_SetDisplayMode(320,240,16,0);
llgfx_tab_pos[0] = 8;
llgfx_tab_pos[1] = 16;
llgfx_text_yspacing = 2.0f;
while(osmain_endgame == false) {
llgfx_ClearScreen(BROWN);
llgfx_SetTextPos(2,32);
llgfx_tab_chars[0] = 0;
PtrInputEvent ev;
while( ev = llinput_GetEvent() ){
llgfx_Printf("ev:*devicename=%s ev:*eventname=%s state=%x\n", ev->devicename, ev->eventname, ev->state );
}
for( int i = 0; i < 256; i ++ ){
if( llinput_Keys[i] ){
llgfx_Printf("%x ", i);
}
}
llgfx_Printf("mousex = %d\nmousey = %d", llinput_MouseX, llinput_MouseY);
if( llinput_MouseBtn1 )
return 0;
llinput_Update();
llgfx_FlipScreen(true);
} //
return 0;
}