Commit Graph

20 Commits

Author SHA1 Message Date
veclavtalica
688d71953a make inputs up-to-date for game tick 2025-01-15 00:43:46 +03:00
veclavtalica
664f123a85 twn_input.c: zero ctx.mouse_movement on focus lost 2025-01-14 02:56:55 +03:00
veclavtalica
86bf16b680 make mouse movement and capture depend on window focus 2025-01-14 02:07:54 +03:00
veclavtalica
4ed3764c1d twn_input.c: remove input_mouse_captured(), add ctx.mouse_capture 2025-01-14 00:28:21 +03:00
veclavtalica
dc2535358e make input coordinates respect the viewport 2024-12-24 10:24:50 +03:00
veclavtalica
9121da0675 yet another api rework, removal of integer types in public api, optionals at the end, some cleaning 2024-10-29 12:25:24 +03:00
veclavtalica
6464d14b3e twn_input.h: remove unbinding 2024-10-28 13:04:49 +03:00
veclavtalica
9da26638c8 rework input to be in line with rendering semantics 2024-10-22 20:32:17 +03:00
veclavtalica
eff2d9c5e1 direct header includes, remove redundant ones 2024-10-22 10:39:40 +03:00
da98c0941b effort to have no warnings once again 2024-10-13 21:32:31 +03:00
e70366f82f rework to context: now there's engine and user code copies, renaming of fields, most things that shouldn't be there are hidden 2024-10-12 20:24:47 +03:00
0ede612bec twn_input: singleton rework, twn_control.h and fixes 2024-10-08 10:12:47 +03:00
3e972b2dad twn_input: add twn_scancode.h as port of SDL_scancode.h, remove SDL2/SDL.h header usage sa for plans on having clean public headers 2024-10-06 23:49:05 +03:00
91ea5356fc fix variout memory leaks 2024-10-01 13:34:58 +03:00
57fe5e8946 implement game configuration file
this integrates https://github.com/cktan/tomlc99 into the repo as a dependency
2024-10-01 12:48:42 +03:00
0fe1023667 use SDL stdlib where possible 2024-09-25 19:42:34 -03:00
73bf92e706 typedef & PascalCase for ALL structs and enums 2024-09-23 14:43:16 -03:00
5cc36ab46c twn_input.c: fix scancode unbinding (ie make it actually work lol) 2024-09-20 12:39:37 -03:00
16c96010dc finally compiling and running, text still needs rework 2024-09-16 16:17:00 +03:00
551d60ef85 partially done work on total source tree rework, separation of engine context and game context, generalization of renderer for different backends as well as web platform target 2024-09-16 09:07:01 +03:00