Commit Graph

51 Commits

Author SHA1 Message Date
kalaposfos13
1d8347e1dd Added back back button to touchpad binding 2024-12-02 09:20:53 +01:00
kalaposfos13
178ee45e89 Clang 2024-12-01 19:03:07 +01:00
kalaposfos13
448e68155b Fix merge conflict 2024-12-01 18:41:53 +01:00
kalaposfos13
99dcc79674 Merge remote-tracking branch 'origin/main' 2024-12-01 17:53:30 +01:00
TheTurtle
5b6e0ab238
core: Library cleanup (#1631)
* core: Split error codes into separate files

* Reduces build times and is cleaner

* core: Bring structs and enums to codebase style

* core: More style changes
2024-11-30 22:37:36 +02:00
kalaposfos13
bc187bfe81 Fix button-to-touchpad logic and l2/r2 handling, as they are both axes and buttons
The touchpad's button state was correctly handled, so games that use that were fine, but the touchDown flag was always set to true, so games that use this flag had problems, like Gravity Rush
2024-11-29 16:25:17 +01:00
kalaposfos13
384e9637ee Initial axis-to-button logic 2024-11-25 10:04:16 +01:00
kalaposfos13
0067d741f4 clang and debug print cleanup 2024-11-24 21:25:43 +01:00
kalaposfos13
675559b1ba Initial controller support 2024-11-24 21:00:17 +01:00
kalaposfos13
4c0c3d30d7 Merge remote-tracking branch 'origin/main' 2024-11-22 17:59:17 +01:00
TheTurtle
c4506da0ae
kernel: Rewrite pthread emulation (#1440)
* libkernel: Cleanup some function places

* kernel: Refactor thread functions

* kernel: It builds

* kernel: Fix a bunch of bugs, kernel thread heap

* kernel: File cleanup pt1

* File cleanup pt2

* File cleanup pt3

* File cleanup pt4

* kernel: Add missing funcs

* kernel: Add basic exceptions for linux

* gnmdriver: Add workload functions

* kernel: Fix new pthreads code on macOS. (#1441)

* kernel: Downgrade edeadlk to log

* gnmdriver: Add sceGnmSubmitCommandBuffersForWorkload

* exception: Add context register population for macOS. (#1444)

* kernel: Pthread rewrite touchups for Windows

* kernel: Multiplatform thread implementation

* mutex: Remove spamming log

* pthread_spec: Make assert into a log

* pthread_spec: Zero initialize array

* Attempt to fix non-Windows builds

* hotfix: change incorrect NID for scePthreadAttrSetaffinity

* scePthreadAttrSetaffinity implementation

* Attempt to fix Linux

* windows: Address a bunch of address space problems

* address_space: Fix unmap of region surrounded by placeholders

* libs: Reduce logging

* pthread: Implement condvar with waitable atomics and sleepqueue

* sleepq: Separate and make faster

* time: Remove delay execution

* Causes high cpu usage in Tohou Luna Nights

* kernel: Cleanup files again

* pthread: Add missing include

* semaphore: Use binary_semaphore instead of condvar

* Seems more reliable

* libraries/sysmodule: log module on `sceSysmoduleIsLoaded`

* libraries/kernel: implement `scePthreadSetPrio`

---------

Co-authored-by: squidbus <175574877+squidbus@users.noreply.github.com>
Co-authored-by: Daniel R. <47796739+polybiusproxy@users.noreply.github.com>
2024-11-21 22:59:38 +02:00
kalaposfos13
45cc82e925 okay so maybe the gravity rush fix might have slightly broken the joystick halfmode and key toggle 2024-11-17 17:03:33 +01:00
kalaposfos13
3261674819 Update Help text, default config, and clang 2024-11-16 14:25:14 +01:00
kalaposfos13
3466de0dc0 Possible fix for Gravity Rush 2024-11-16 11:22:49 +01:00
kalaposfos13
01100091ff Fix typo 2024-11-16 10:02:37 +01:00
kalaposfos13
3d4db91225 Fix default config and the latest bug with input hiearchy 2024-11-15 16:58:20 +01:00
kalaposfos13
f5f988d63e Updated sorting to accomodate for that one specific edge case 2024-11-15 11:50:58 +01:00
kalaposfos13
91e30ac62b Update code style 2024-11-15 10:35:34 +01:00
kalaposfos13
9d6dd79486 clang 2024-11-15 09:45:32 +01:00
kalaposfos13
94c6a9fad9 Rewrote the default config to reflect new changes 2024-11-15 09:44:25 +01:00
kalaposfos13
900b578988 clang-format 2024-11-15 09:06:52 +01:00
kalaposfos13
e43d60edaa Fixed joysick halfmodes, and possibly the last update on input hierarchy 2024-11-15 09:04:43 +01:00
kalaposfos13
1efd247584 Fix input hierarchy 2024-11-14 22:29:56 +01:00
kalaposfos13
3e512bcd51 Fixed clang and added a const keyword for mac 2024-11-14 15:28:10 +01:00
kalaposfos13
9c81f8e2f2 clang-format 2024-11-14 14:44:34 +01:00
kalaposfos13
1a8f177526 Added mouse parameter parsing 2024-11-14 14:42:52 +01:00
kalaposfos13
09b945ce8b Implemented key toggle 2024-11-14 14:21:05 +01:00
kalaposfos13
6ad6079c56 Downgraded prints to log_debug, and implemented input hierarchy 2024-11-14 13:15:38 +01:00
kalaposfos13
0d87d0d730 Wheel works now (for me), l2/r2 handling improvements, and misc bugfixes 2024-11-14 11:04:22 +01:00
kalaposfos13
df738c6dc1 Axis outputs work now 2024-11-13 21:20:46 +01:00
kalaposfos13
5c2d09dd3e Single key button inputs work now 2024-11-13 19:03:42 +01:00
kalaposfos13
86c8701323 Parsing works now 2024-11-13 17:09:00 +01:00
kalaposfos13
d92a83ccb5 Output update handling, and reworked file creating, reading and parsing 2024-11-13 11:17:07 +01:00
kalaposfos13
1884b39eb8 Mouse polling, CMakeLists, and basic framework 2024-11-13 09:39:19 +01:00
kalaposfos13
7a95c27b2c Start working on new backend 2024-11-12 19:44:23 +01:00
Vladislav Mikhalin
c38e3f77f9
Add poll interval to libScePad (#1415) 2024-10-19 15:57:01 +03:00
squidbus
398019867b
sdl: Fix use of functions that now return SDL_bool (#1160) 2024-09-30 06:47:55 +03:00
georgemoralis
dd61c2a0d1 Revert "Add UI to configure keyboard-to-controller mapping (#308)"
This reverts commit fdb13a3b90.
2024-09-11 12:56:27 +03:00
Vasyl_Baran
fdb13a3b90
Add UI to configure keyboard-to-controller mapping (#308)
* Add UI to configure keyboard-to-controller mapping

* Add an optional "---fix" argument to format-checking script

* clang fix

---------

Co-authored-by: georgemoralis <giorgosmrls@gmail.com>
2024-09-11 08:51:18 +03:00
counter185
89bdd3bba2 it's actually 1920x941 2024-08-28 14:15:01 +02:00
counter185
15fc267f0d Update controller.h 2024-08-28 13:58:37 +02:00
counter185
0b24ac6991 actually get rid of that comment 2024-08-28 13:56:49 +02:00
counter185
698dade864 * 2024-08-28 13:53:07 +02:00
counter185
4e6e90dfb9 add touchpad support, auto reconnect 2024-08-28 13:48:50 +02:00
counter185
bb159eafb9
Basic gamepad support through SDL (#407)
* Add basic gamepad support through SDL

* lightbar, vibration, code style changes

* okay fine

* one day clang format will finally pass
2024-08-13 12:54:08 +03:00
Xphalnos
a7f2f09a44
Reorganization of includes (#348)
* Reorganization of includes

* fix
2024-07-31 13:25:55 +03:00
georgemoralis
0325e4795a posix_pthread_yield , scePadGetHandle 2024-06-20 17:10:14 +03:00
georgemoralis
48d6ccd9bb partially added analog controls 2024-06-17 12:52:25 +03:00
raphaelthegreat
dd91456b48 video_core: Moar shader instruction 2024-05-30 18:17:54 +03:00
GPUCode
c01b6f8397 video_core: Rewrite vulkan and videoout 2024-04-14 17:10:40 +03:00