remaining things from list besides skipped ones

master
chr 2020-01-11 22:44:12 -08:00
parent 3d9845a376
commit efa63025dc
1 changed files with 52 additions and 0 deletions

View File

@ -72,7 +72,18 @@
//////////////////////////// ////////////////////////////
struct Linux_Vars { struct Linux_Vars {
Display *XDisplay;
Window XWindow;
int epoll; int epoll;
b32 is_full_screen;
b32 should_be_full_screen;
Application_Mouse_Cursor cursor;
b32 hide_cursor;
XCursor hidden_cursor;
Node free_linux_objects; Node free_linux_objects;
System_Mutex global_frame_mutex; System_Mutex global_frame_mutex;
@ -728,5 +739,46 @@ system_memory_free_sig(){
munmap(ptr, size); munmap(ptr, size);
} }
// system_memory_annotation_sig
internal
system_show_mouse_cursor_sig(){
linuxvars.hide_cursor = !show;
XDefineCursor(
linuxvars.XDisplay,
linuxvars.XWindow,
show ? None : linuxvars.hidden_cursor);
}
internal
system_set_fullscreen_sig(){
linuxvars.should_be_full_screen = full_screen;
return true;
}
internal
system_is_fullscreen_sig(){
return linuxvars.is_full_screen;
}
// system_get_keyboard_modifiers_sig()
internal void
linux_handle_x11_events() {
static XEvent prev_event = {};
b32 should_step = false;
while (XPending(linuxvars.XDisplay)) {
XEvent event;
XNextEvent(linuxvars.XDisplay, &event);
if (XFilterEvent(&event, None) == True){
continue;
}
switch (event.type) {
}
}
}
int main(int argc, char **argv){ int main(int argc, char **argv){
} }