Stubbed in new functions (need to go make sure they build still)

This commit is contained in:
Allen Webster 2020-05-09 08:11:43 -07:00
parent a410ce5f6c
commit c9c1e1bcb3
5 changed files with 16 additions and 0 deletions

View File

@ -165,6 +165,8 @@ struct Linux_Vars {
int xkb_event; int xkb_event;
int xkb_group; // active keyboard layout (0-3) int xkb_group; // active keyboard layout (0-3)
Key_Mode key_mode;
int epoll; int epoll;
int step_timer_fd; int step_timer_fd;
u64 last_step_time; u64 last_step_time;

View File

@ -796,5 +796,10 @@ system_get_keyboard_modifiers(Arena* arena){
return(copy_modifier_set(arena, &linuxvars.input.pers.modifiers)); return(copy_modifier_set(arena, &linuxvars.input.pers.modifiers));
} }
function
system_set_key_mode_sig(){
linuxvars.key_mode = mode;
}
// NOTE(inso): to prevent me continuously messing up indentation // NOTE(inso): to prevent me continuously messing up indentation
// vim: et:ts=4:sts=4:sw=4 // vim: et:ts=4:sts=4:sw=4

View File

@ -181,6 +181,8 @@ struct Mac_Vars {
Mac_Input_Chunk input_chunk; Mac_Input_Chunk input_chunk;
b8 lctrl_lalt_is_altgr; b8 lctrl_lalt_is_altgr;
Key_Mode key_mode;
b8 full_screen; b8 full_screen;
b8 do_toggle; b8 do_toggle;
b32 send_exit_signal; b32 send_exit_signal;

View File

@ -933,6 +933,11 @@ system_get_keyboard_modifiers_sig(){
return(result); return(result);
} }
function
system_set_key_mode_sig(){
mac_vars.key_mode = mode;
}
//////////////////////////////// ////////////////////////////////
/**********************/ /**********************/

View File

@ -1,7 +1,9 @@
4.1.6 4.1.6
+ In config.4coder "bind_by_physical_key" uses a key-layout that does not change with language
+ Fix: notepad like mode scrolling only creates selection when holding mouse L-buttoon + Fix: notepad like mode scrolling only creates selection when holding mouse L-buttoon
+ Fix: on windows the window has the 4coder icon + Fix: on windows the window has the 4coder icon
+ Fix: by default platform layer uses key codes arranged by the system language
4.1.5 4.1.5
+ MAJOR: Scratch_Blocks now take arena pointer parameters in their constructor to specify arenas that should be treated as having distinct lifetimes, without doing this it is possible that a local scratch and another arena will actually refer to the same allocator and freeing the local scratch will also free memory that was meant to be in a separate arena. + MAJOR: Scratch_Blocks now take arena pointer parameters in their constructor to specify arenas that should be treated as having distinct lifetimes, without doing this it is possible that a local scratch and another arena will actually refer to the same allocator and freeing the local scratch will also free memory that was meant to be in a separate arena.