rework to context: now there's engine and user code copies, renaming of fields, most things that shouldn't be there are hidden
This commit is contained in:
1 parent
7886650339
commit
e70366f82f
14 files changed
+106
-97
No files matched your search
+2
-2
@@ -194,8 +194,8 @@ void input_state_update(InputState *input) {
|
||||
SDL_GetRelativeMouseState(&input->mouse_relative_position.x,
|
||||
&input->mouse_relative_position.y);
|
||||
|
||||
ctx.game.mouse_window_position = input->mouse_window_position;
|
||||
ctx.game.mouse_relative_position = input->mouse_relative_position;
|
||||
ctx.game.mouse_position = input->mouse_window_position;
|
||||
ctx.game.mouse_movement = input->mouse_relative_position;
|
||||
|
||||
for (size_t i = 0; i < shlenu(input->action_hash); ++i) {
|
||||
Action *action = &input->action_hash[i].value;
|
||||
|
||||
Reference in new issue
Block a user