Commit Graph

11379 Commits

Author SHA1 Message Date
Ash
fdcc4f262c wiiu/render: move window-related functions to own file 2020-01-05 14:21:04 +11:00
Ash
468fb1ad51 wiiu/render: consolidate calls to SetRenderTarget, minor tweaks 2020-01-05 14:21:04 +11:00
Ash
74f001c6c4 wiiu/render: Move function sigs and definitions to dedicated header 2020-01-05 14:21:04 +11:00
Ash
7f7606b833 wiiu/render: Minor formatting, move windowdata to header 2020-01-05 14:21:04 +11:00
Ash
bdb264d143 wiiu/video: move window data to header 2020-01-05 14:21:04 +11:00
Ash
1f3c3391c0 wiiu: render: Be consistent about tabs/spaces 2020-01-05 14:21:04 +11:00
rw-r-r-0644
875f1fb60d wiiu: Implement more renderer functions (1) 2020-01-05 14:21:04 +11:00
rw-r-r-0644
e7d6d8f733 wiiu: Start implementing SDL_Renderer 2020-01-05 14:21:04 +11:00
rw-r-r-0644
8b9f7b6204 wiiu: switch to tpNormal, tpFiltered1 casues scrolling issues 2020-01-05 14:21:04 +11:00
rw-r-r-0644
f93db3b6ec wiiu: Disable DRC surround mode as it causes distortion 2020-01-05 14:21:04 +11:00
Ash
9d4c4ac3c2 video: Respect application's requested window size/position 2020-01-05 14:21:04 +11:00
Ash
9d2352ba39 video: move position buffer filling to UpdateWindowFramebuffer 2020-01-05 14:21:04 +11:00
Ash
955449985c video: oops 2020-01-05 14:21:04 +11:00
Ash
341f15a22a video: Style nits 2020-01-05 14:21:04 +11:00
Ash
fc427d8d72 video: start refactoring - move rendering to own function 2020-01-05 14:21:04 +11:00
rw-r-r-0644
3454aad21b wiiu: switch to wut.mk 2020-01-05 14:21:04 +11:00
Ash
543ae66a56 audio: DCFlushRange -> DCStoreRange 2020-01-05 14:21:04 +11:00
Ash
409b1f992e audio: Send voice to TV 2020-01-05 14:21:04 +11:00
Ash
ae719605ce audio: Add *very* early wiiu audio support 2020-01-05 14:21:04 +11:00
rw-r-r-0644
8b4999da92 wiiu: explicitly set endianess in config (thanks @quarktheawesome) [needed for missing defines in toolchain] 2020-01-05 14:21:04 +11:00
rw-r-r-0644
92638ca6b0 input/wiiu: switch back to VPADGetTPCalibratedPoint 2020-01-05 14:21:04 +11:00
rw-r-r-0644
e10beb7e68 threads/wiiu: fix crash on SDL_SYS_CreateThread: pass stack top and not stack bottom 2020-01-05 14:21:04 +11:00
rw-r-r-0644
59bb58860c wiiu: enable thread support and stop building generic thread impl 2020-01-05 14:21:04 +11:00
rw-r-r-0644
5bffc11a0b threads/wiiu: remove unused SDL_mutex structure definition and only build when requested 2020-01-05 14:21:04 +11:00
rw-r-r-0644
1b9699d2d4 threads/wiiu: implement SDL_CondWaitTimeout 2020-01-05 14:21:04 +11:00
rw-r-r-0644
c72c9a87ea threads/wiiu: add sysmutex_c.h header 2020-01-05 14:21:04 +11:00
rw-r-r-0644
75443863b8 threads/wiiu: add generic thread storage 2020-01-05 14:21:04 +11:00
rw-r-r-0644
8095af013c threads/wiiu: add semaphores 2020-01-05 14:21:04 +11:00
rw-r-r-0644
dd51c31175 wiiu/input: Use raw for touchscreen and check for VPADRead errors 2020-01-05 14:21:04 +11:00
rw-r-r-0644
d2b3853ef9 Rewrite wiiu joystick driver to better match switch's and add touchscreen support 2020-01-05 14:21:04 +11:00
rw-r-r-0644
917026f529 Do not send SDL_QUIT from WIIU_PumpEvents: it causes crashes and isn't the right way to do it 2020-01-05 14:21:04 +11:00
rw-r-r-0644
fb49cb3d44 Change shader include guard to match SDL 2020-01-05 14:21:04 +11:00
rw-r-r-0644
abf33db515 Switch to GX2!! (thanks to exjam for his help and toolchain and aliaspider for his shader!) 2020-01-05 14:21:04 +11:00
rw-r-r-0644
560fd9cba6 Initial support for Nintendo WiiU 2020-01-05 14:21:04 +11:00
Andrew Eikum
c7b8b49ef8 hidapi: Zero out new hid_device_info structs 2019-07-23 14:41:00 -05:00
Ethan Lee
7e0cc7e15b Copypaste SDL_NSLog to UIKit backend, document it as such 2019-07-17 23:20:57 -04:00
Sam Lantinga
0481c0b987 Fixed bug 4726 - Fix for tvOS GetPrefPath
Caleb Cornett

Unlike iOS and macOS, tvOS does not have any persistent local storage. In fact, the ApplicationSupport directory pointed to by the existing Cocoa GetPrefPath() throws an error whenever any attempt is made to access it. To get any local storage on an Apple TV, our only option is to use a temporary cache directory.

This patch changes the tvOS PrefPath to this cache directory and also logs a critical warning that this if developers want their save data to persist across game sessions, they must use some form of iCloud storage.
2019-07-18 19:33:17 -07:00
Sam Lantinga
e2e6f78573 Fixed build error 2019-07-17 16:47:19 -07:00
Sam Lantinga
551c435a27 Merged latest changes from Steam into controller_type.h 2019-07-17 16:47:17 -07:00
Sam Lantinga
55fd028b86 Add linked list of opened HID devices to prevent accessing already freed devices in device removal callback that is sometimes called even after being unregistered 2019-07-17 16:47:13 -07:00
Sam Lantinga
4dd6fb2220 Added support for the Victrix Pro Fight Stick for PS4 2019-07-17 13:01:44 -07:00
Cameron Gutman
9fc92a4a38 Allow hotplugging joysticks without udev 2019-06-24 21:08:26 -07:00
Sam Lantinga
3ed80aec26 Fixed bug 4704 - SDL_HINT_ANDROID_SEPERATE_MOUSE_AND_TOUCH on Windows?
superfury

I notice that, somehow, when locking the mouse into place(using SDL_SetRelativeMouseMode), somehow at least the movement information gets through to both mouse movement and touch movement events?

My app handles both, so when moving a touched finger accross the app(using RDP from an Android device) I see the mouse moving inside the app when it shouldn't(meaning that the touch movement is ignored properly by the app(press-location dependant) but the mouse movement is still performed due to the mouse movement events)?
2019-07-15 09:36:53 -07:00
Sam Lantinga
f14e55e15b Fixed bug 4723 - Generic Xbox pad controller bindings seem odd/broken
alexrice999

I have a knock off wired xbox 360 controller called afterglow for xbox 360 controller. Despite there being a few afterglow controllers in the controller mapping the guid of my controller seems to map to Generic Xbox pad. This binding is as follows:
```
 "030000006f0e00001304000000010000,Generic X-Box pad,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:a0,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:a3,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,",
```
When running openmw I have a strange issue that the joysticks work for up and down movements but not for side to side. I managed to track this down to the side to side events being classified as joystick events instead of gamepad events.
I believe this is due to both "leftstick" and "leftx" being bound to "a0" which seems odd to me. If I change openmw's mappings to remove these the controller works as expected. I was hoping someone who knows a lot more than me (as I have only been exploring this today trying to fix my controller) would know what is happening
2019-07-14 16:59:39 -07:00
Jimb Esser
eec7834c4c Blacklist Corsair device causing hang 2019-07-14 16:48:31 -07:00
Alex Szpakowski
30eccf0ba4 macOS: Fix SDL_GL_CreateContext/MakeCurrent on non-main threads causing a Main Thread Checker warning when built with Xcode 11 / the macOS 10.15 SDK.
Fixes bug #4714.
2019-07-13 17:04:02 -03:00
Ryan C. Gordon
5e386aa169 ios: Fixed MFi guide button not being detected (thanks, Caleb!).
Fixes Bugzilla #4721.
2019-07-12 21:28:43 -04:00
Ryan C. Gordon
9f0bf208be cmake: Add setupapi library to Windows build dependencies (hidapi needs it).
Fixes Bugzilla #4719.
2019-07-12 13:40:58 -04:00
Ryan C. Gordon
7dd564a443 cocoa: Set keyboard mod state correctly when turning off capslock.
Fixes Bugzilla #4716.
2019-07-11 01:07:14 -04:00
Sylvain Becker
4f889d8bce x11: prevent a synthetic mouse event when using a touchscreen
With multitouch, register to receive XI_Motion (which desctivates MotionNotify),
so that we can distinguish real mouse motions from synthetic one.

(bug 4690)
2019-07-10 10:06:28 +02:00