| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | net.h: Add missing extern "C"HEADmaster | Xavier Del Campo Romero | 2022-09-23 | 1 | -0/+9 |
| | | |||||
| * | input.c: do not fail on input_render | Xavier Del Campo Romero | 2022-09-23 | 1 | -2/+2 |
| | | | | | | Implementation is still incomplete, and should not crash the application. | ||||
| * | join_menu.c: Update serial/IPv4 GUI menus | Xavier Del Campo Romero | 2022-09-23 | 1 | -24/+119 |
| | | |||||
| * | ps1/net.c: return 0 on net_init | Xavier Del Campo Romero | 2022-09-23 | 1 | -1/+1 |
| | | | | | | Even if the implementation is not finished yet, this will avoid the program from crashing on startup. | ||||
| * | net: Implement net_available | Xavier Del Campo Romero | 2022-09-23 | 3 | -1/+13 |
| | | |||||
| * | net: Implement net_serial_devices | Xavier Del Campo Romero | 2022-09-23 | 4 | -0/+40 |
| | | | | | | This function provides a platform-specific list of serial devices that can be accessed. | ||||
| * | keyboard: Add KEYBOARD_KEY_SLASH | Xavier Del Campo Romero | 2022-09-23 | 3 | -2/+6 |
| | | |||||
| * | label.c: Set empty text by default | Xavier Del Campo Romero | 2022-09-23 | 1 | -1/+3 |
| | | | | | | This will avoid crashing the application on rendering due to uninitialized labels. | ||||
| * | gui.c: Remove unneeded condition | Xavier Del Campo Romero | 2022-09-23 | 1 | -3/+1 |
| | | | | | | Even if neither hcentered or vcentered are used, GUI element position must be determined by that of its parents. | ||||
| * | gui.c: Fix minor const-correctness issues | Xavier Del Campo Romero | 2022-09-23 | 1 | -2/+2 |
| | | |||||
| * | gui: Allow elements to be hidden | Xavier Del Campo Romero | 2022-09-23 | 3 | -18/+32 |
| | | | | | | | When a GUI element is hidden, no rendering or updating is done to it or its children. This can be useful to define a complex GUI tree structure that changes under specific conditions, without redefining it. | ||||
| * | gfx: Provide functions for fullscreen handling | Xavier Del Campo Romero | 2022-09-23 | 3 | -0/+22 |
| | | |||||
| * | Implement checkbox GUI element | Xavier Del Campo Romero | 2022-09-23 | 8 | -0/+127 |
| | | |||||
| * | net: Group events into struct | Xavier Del Campo Romero | 2022-09-21 | 3 | -16/+21 |
| | | |||||
| * | gui: fix wrong logic on update/render/deinit | Xavier Del Campo Romero | 2022-09-21 | 1 | -11/+15 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The older implementation caused some elements to be update/rendered/deinitialized more than once per call. For example, considering the following tree of GUI elements: A B C D E The older implementation would update/render/deinitialize C and E more than once, as shown below: Update A Update B Update C Update D Update E Update C This was because a GUI element was acting on its siblings, but the siblings would also act on theirs, causing the extra calls. OTOH, as an additional improvement, no nested call is now required for siblings. | ||||
| * | menu: Implement join_menu | Xavier Del Campo Romero | 2022-09-20 | 9 | -5/+342 |
| | | |||||
| * | Implement GUI line edit | Xavier Del Campo Romero | 2022-09-20 | 12 | -0/+304 |
| | | |||||
| * | gui: Implement gui_deinit | Xavier Del Campo Romero | 2022-09-20 | 2 | -0/+14 |
| | | |||||
| * | Implement net component | Xavier Del Campo Romero | 2022-09-20 | 14 | -0/+572 |
| | | |||||
| * | Implement FindENET.cmake | Xavier Del Campo Romero | 2022-09-20 | 1 | -0/+88 |
| | | | | | | This library will be later used for networking over UDP/IPv4 in future commits. | ||||
| * | Remap calls to pad/mouse/keyboard to input | Xavier Del Campo Romero | 2022-09-20 | 22 | -94/+195 |
| | | |||||
| * | Implement input component | Xavier Del Campo Romero | 2022-09-20 | 4 | -0/+237 |
| | | | | | | | | | | | | | | | | | It is required to redirect keyboard input (both physical or not) when a GUI line edit is focused. This means other components cannot be activated on key presses. Therefore, this new component is meant as a higher-level abstraction compared to the `keyboard`/`pad`/`mouse` components, which: - Implements the same APIs provided by `keyboard`, `mouse` and `pad`. - Returns the same results as the APIs above if no GUI element is focused, no input otherwise. Note: replacing calls to `keyboard`/`pad`/`mouse` with `input` will be implemented in a future commit. | ||||
| * | keyboard: Add new public functions | Xavier Del Campo Romero | 2022-09-20 | 2 | -0/+83 |
| | | | | | These will be used by future commits. | ||||
| * | orig/LICENSE: Minor changes | Xavier Del Campo Romero | 2022-09-20 | 1 | -1/+1 |
| | | |||||
| * | Minor code style fixes | Xavier Del Campo Romero | 2022-09-20 | 2 | -3/+1 |
| | | |||||
| * | sdl-1.2: Remap missing keyboard keys | Xavier Del Campo Romero | 2022-09-20 | 1 | -2/+49 |
| | | |||||
| * | keyboard_key.h: add more keys | Xavier Del Campo Romero | 2022-09-20 | 1 | -1/+5 |
| | | |||||
| * | sdl-1.2: Remap SDLK_ESCAPE to KEYBOARD_KEY_ESC | Xavier Del Campo Romero | 2022-09-16 | 1 | -1/+1 |
| | | |||||
| * | mouse.c: Reduce threshold | Xavier Del Campo Romero | 2022-09-16 | 1 | -2/+2 |
| | | |||||
| * | Split CMakeLists.txt for src | Xavier Del Campo Romero | 2022-09-16 | 2 | -47/+48 |
| | | |||||
| * | Split res-related CMake functions into their own file | Xavier Del Campo Romero | 2022-09-16 | 2 | -109/+110 |
| | | |||||
| * | CMakeLists.txt: bump minimum CMake version | Xavier Del Campo Romero | 2022-09-16 | 1 | -1/+2 |
| | | |||||
| * | Use find_package for SDL libraries | Xavier Del Campo Romero | 2022-07-23 | 20 | -51/+37 |
| | | | | | | | | | | | CMake already distributes FindSDL*.cmake files for SDL and SDL_mixer, which support custom prefixes via environment variables, removing the need for ad-hoc logic in Win9x builds. Also, according to FindSDL.cmake, #include <SDL.h> is the preferred way for portability reasons, instead of #include <SDL/SDL.h>, which is the option that has been used so far. | ||||
| * | ps1.cmake: import PSXSDK using find_package | Xavier Del Campo Romero | 2022-07-23 | 1 | -10/+1 |
| | | |||||
| * | README.md: Update documentation for Win9x builds | Xavier Del Campo Romero | 2022-07-23 | 1 | -1/+30 |
| | | |||||
| * | ps1: Use exported target PSXSDK::PSXSDK | Xavier Del Campo Romero | 2022-07-23 | 6 | -2/+6 |
| | | |||||
| * | Implement FindPSXSDK.cmake | Xavier Del Campo Romero | 2022-07-23 | 1 | -0/+94 |
| | | |||||
| * | Update FindSDL_gfx.cmake as of today's upstream | Xavier Del Campo Romero | 2022-07-23 | 1 | -39/+17 |
| | | | | | | Ongoing PR: https://gitlab.kitware.com/cmake/cmake/-/merge_requests/7475 | ||||
| * | system/CMakeLists.txt: group common private dependencies into var | Xavier Del Campo Romero | 2022-07-23 | 1 | -1/+2 |
| | | |||||
| * | Create cdroot directory on common CMakeLists.txt | Xavier Del Campo Romero | 2022-07-23 | 4 | -3/+1 |
| | | |||||
| * | README.md: Document dependencies for Ubuntu builds | Xavier Del Campo Romero | 2022-07-23 | 1 | -0/+8 |
| | | |||||
| * | CMakeLists.txt: Define rts as a C-only project | Xavier Del Campo Romero | 2022-07-23 | 1 | -1/+1 |
| | | | | | | While it is true "extern C" is used on all headers, there is no need for CMake to check the C++ compiler. | ||||
| * | SDL-1.2: Implement X mirroring for quads | Xavier Del Campo Romero | 2022-07-15 | 3 | -20/+48 |
| | | |||||
| * | Import SDL_gfx | Xavier Del Campo Romero | 2022-07-15 | 5 | -1/+18 |
| | | |||||
| * | Implement FindSDL_gfx.cmake | Xavier Del Campo Romero | 2022-07-15 | 1 | -0/+106 |
| | | | | | | | | | | Surprisingly, as of today (July 2022) CMake ships with FindSDL*.cmake files for several SDL libraries such as SDL_mixer or SDL_image, but not for SDL_gfx, so one was created, based on FindSDL_mixer.cmake. Reference: https://gitlab.kitware.com/cmake/cmake/-/blob/8a3004d5c28c0ca0ac45f718b64ed3662e499c7a/Modules/FindSDL_mixer.cmake | ||||
| * | gui: Update elements in reverse order | Xavier Del Campo Romero | 2022-07-15 | 1 | -2/+2 |
| | | | | | | This allows to calculate dimensions for containers with children containers in it. | ||||
| * | Deprecate memset(3) in favour of C99 compound literals | Xavier Del Campo Romero | 2022-07-15 | 2 | -7/+3 |
| | | |||||
| * | Allow children of gui_container be resized anytime | Xavier Del Campo Romero | 2022-07-10 | 4 | -10/+32 |
| | | | | | | | | | | | | | | | So far, their position inside the container was determined when initializing the interface. However, if a child were resized afterwards, the container would not adjust its elements accordingly. Moreover, the implementation for gui_container relied on hacking the children's X/Y coordinates, which could only be done once. Now, two additional members have been added to gui_common so that specific X/Y offset can be determined by the parent, additionally to the traditional rules followed by gui_coords. Despite the extra memory footprint, it now allows containers to set specific X/Y offsets for their children on every game cycle. | ||||
| * | Implement join/host and game cfg menus | Xavier Del Campo Romero | 2022-07-07 | 6 | -72/+341 |
| | | |||||
| * | Implement system_can_exit | Xavier Del Campo Romero | 2022-07-07 | 3 | -0/+13 |
| | | |||||
