Commit Graph
475 Commits
Author SHA1 Message Date
Kenix3andGitHub 4877a9c186 Uses original gameMode default sizes. 2025-01-20 11:26:09 -05:00
Kenix3andGitHub 956915b81b Fixes default to boolean 2025-01-20 11:24:54 -05:00
Kenix3 ee112d962d run clang-format 2025-01-06 20:11:34 -05:00
Kenix3 af82ccaba4 Run clang-format 2025-01-06 20:08:40 -05:00
Kenix3 64f9c51028 Revert "Run clang-format"
This reverts commit 2e096476a0.
2025-01-06 20:08:18 -05:00
Kenix3 b2fc462d4f Fixes bad merge 2025-01-06 20:07:03 -05:00
Kenix3 6c96eacda8 Fixes bad merge 2025-01-06 20:04:11 -05:00
Kenix3 2e096476a0 Run clang-format 2025-01-06 19:58:32 -05:00
Kenix3 ec68583a4b Merge latest LUS 2025-01-06 19:56:31 -05:00
lightmanLPandGitHub 3e46fe77a4 Fixes for mouse capture (#779)
* fix cursor centering on dxgi

* fix cursor warp in unfocused window
2025-01-04 13:21:14 -05:00
briaguyaandGitHub b1447cdd71 set SDL_HINT_JOYSTICK_WGI to 0 to address some controller duping issues (#780)
* try no wgi

* windows only
2025-01-04 12:13:19 -05:00
78d951e413 Mouse mapping support (#741)
* init

* fix spelling

* mose key to button mapping

* more button mouse mapping

* separate file for mouse things

cause Ive got recursive include problem

* some fixes

* updating dxgi mouse capture

now compatible with sdl one

* fix

* fix mouse capture clip missing after alt+tab

* mouse binding & gui conflict check

* new mouse input block

* Mouse mapping menu update

* fix ImGui `WantCaptureKeyboard` locks when holding mouse button

* reading mouse from config

casually forgotten

* fixed strange buffered mapping bug

* mouse buttons callbacks

* mouse button to axis mapping

* fix

* mark

* use propper cursor hide method

* merge-fixes

* clang-format

* store main game window ID to reduce load

* update on_mouse_up/down in dxgi

* MouseMeta migration

* MouseKey -> MouseButton

* fix name collision

* another name collision fix

* remove imgui direct calls

* clang-format

* MouseCapture keybind

* replace cursor visibility with mouse capture

* clang-format

* mUseKeydownEventToCreateNewMapping -> mUseInputToCreateNewMapping

* change MAPPING_TYPE_UNKNOWN to -1

* dxgi/sdl GetMouseDelta parity

* set x/y to zero when no capture

* mapping type uint -> int

for MAPPING_TYPE_UNKNOWN = -1

* offset mapping popup

* simple popup check

completely dropped complexity

* clang format

* simplify mouse capture toggle

* boundaries check for mouse buttons

* remove duplicate cursor visibility change in fullscreen

* Windows ignore mouse input while mouse is captured

* simplify

* make separate method for handling capture

* fix cast

* clang-format

* ProcessMouseEvent -> ProcessMouseButtonEvent

* wheel mapping support WIP

* fix for axis

* wheel logging

* macos fix?

* clang format

* fix wheel axis on dx backend

* Revert "wheel logging"

This reverts commit 43082d871b668968de9228b0fd3836fce4186a27.

* buffered wheel axis mapping (test)

* clang format

* fix

* extend buffer

* dxgi horizontal scrolling support

* clang format

---------

Co-authored-by: lilacLunatic <8488221+lilacLunatic@users.noreply.github.com>
2025-01-03 00:23:31 -05:00
louist103andGitHub 2942915fc3 Use delete[] (#777) 2024-12-30 14:15:55 -05:00
briaguyaandGitHub 944f0b474b remove lines that restore window on close (#774) 2024-12-26 13:07:59 -05:00
briaguyaandGitHub dc1f5f1c17 fix switch ZL name (#771)
fix for https://github.com/HarbourMasters/Shipwright/issues/4018
2024-12-26 13:01:56 -05:00
lightmanLPandGitHub 3d8420e392 fix buffed mapping (#767) 2024-12-19 13:55:22 -05:00
MalkierianandGitHub 0aa813dbd3 UnloadResourceAsync (#766)
* Add `UnloadResourcesAsync` to handle threaded unloading.
Make `UnloadResources` non-async.
Add common `UnloadResourcesProcess` to handle the actual unloading.

* Clang again

* Add priority argument to `UnloadResourcesAsync`
2024-12-18 09:27:03 -05:00
MalkierianandGitHub b7e715e60a ResourceFilter, Directory Function Renames, Multifilter Functionality (#752)
* Adds version of `ListFiles`, `ListFilesWithExclude`, allowing for multiple include and exclude filters in one pass. Also adds associated Load, LoadAsync, and Unload directory functions.

* Update for latest LUS main.

* Clang

* Add `ResourceFilter`, used to handle wildcards in paths.
Change `LoadDirectory`, `UnloadDirectory`, and `DirtyDirectory` to `LoadResources`, etc.
Move all Directory processing to the thread pool, encapsulating `ListFiles` as well.
Unify `ListFiles` flows to eventually pass `ResourceFilter` to the base function.

* clang

* Try to address build job fails.

* Fix reference passing and internal storage for `ResourceFilter` flows.
Change the blank `ListFiles()` function to pass empty lists instead of "*" to allow it to trip the early list insertion and return short circuit based on them being empty.

* Remove blank `ListFiles` in favor of default of `""` searchMask for the other one.
Add handling to not add `""` to the list before passing to the base function.
2024-12-17 18:41:01 -05:00
briaguyaandGitHub bd307e8edc split ControlDeck between Ship:: and LUS:: (#758)
* split writetopad

* split readtopad

* move mpadbuffer

* move some controldeck constructor stuff

* move the rest of the oscontpad stuff out of ship::

* move stuff back to private

* more stuff back to private

* format

* remove a couple `LUS::`

* take a controldeck in

* format

* newline

* newline

* newline
2024-12-16 17:41:46 -05:00
briaguyaandGitHub 8b5554dcf9 move resources out of LUS namespace (#757) 2024-12-16 15:31:31 -05:00
briaguyaandGitHub 109c8cbe0a shared pointers for Get/SetArchives (#755) 2024-12-16 15:27:03 -05:00
briaguyaandGitHub e2b147f2e9 make Context not need Fast3dWindow (#753)
* make `Context` not need `Fast3dWindow`

* change `Init`s from `void` to `bool`

* clang format

* address init fails in context
2024-12-16 15:20:34 -05:00
ArchezandGitHub be703a997b fix missing inputs on metal shader for blended textures (#761) 2024-12-16 12:34:49 -05:00
briaguyaandGitHub b23f91306c bump clang-format from 12 to 14 (#760) 2024-12-16 10:16:48 -05:00
ArchezandGitHub b79a1a0424 Fix depth not being cleared on secondary framebuffers (#759) 2024-12-16 10:08:13 -05:00