rework input to be in line with rendering semantics
This commit is contained in:
@ -67,14 +67,11 @@ void game_tick(void)
|
||||
// Allocating State struct to store data there
|
||||
if (!ctx.udata)
|
||||
ctx.udata = ccalloc(1, sizeof(State));
|
||||
|
||||
input_add_action("add_a_bit");
|
||||
input_bind_action_control("add_a_bit", CONTROL_LEFT_MOUSE);
|
||||
|
||||
input_add_action("add_a_lot");
|
||||
input_bind_action_control("add_a_lot", CONTROL_RIGHT_MOUSE);
|
||||
}
|
||||
|
||||
input_bind_action_control("add_a_bit", CONTROL_LEFT_MOUSE);
|
||||
input_bind_action_control("add_a_lot", CONTROL_RIGHT_MOUSE);
|
||||
|
||||
State *state = ctx.udata;
|
||||
|
||||
for (int i = 0; i < state->bunniesCount; i++)
|
||||
|
Reference in New Issue
Block a user