yet another api rework, removal of integer types in public api, optionals at the end, some cleaning
This commit is contained in:
@ -22,14 +22,14 @@ void game_tick(void) {
|
||||
|
||||
State *state = ctx.udata;
|
||||
|
||||
input_bind_action_control("debug_toggle", CONTROL_BACKSPACE);
|
||||
input_bind_action_control("debug_dump_atlases", CONTROL_HOME);
|
||||
input_action("debug_toggle", CONTROL_BACKSPACE);
|
||||
input_action("debug_dump_atlases", CONTROL_HOME);
|
||||
|
||||
if (input_is_action_just_pressed("debug_toggle")) {
|
||||
if (input_action_just_pressed("debug_toggle")) {
|
||||
ctx.debug = !ctx.debug;
|
||||
}
|
||||
|
||||
if (input_is_action_just_pressed("debug_dump_atlases")) {
|
||||
if (input_action_just_pressed("debug_dump_atlases")) {
|
||||
textures_dump_atlases();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user