43677 Commits

Author SHA1 Message Date
Dwedit
78c8a9b197 Make RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE work on the secondary core 2018-04-01 17:34:54 -05:00
twinaphex
015facee70 (XMB) Cleanups 2018-04-01 18:23:37 +02:00
gblues
2cf89feb86 Code clean-up
== DETAILS

Now that I have a working implementation, it's time to tidy up a bit:

- there was no need for the HID subsystem's object data to have a reference
  to the global hid state (since it's global), so removed it.
- refactored the users of that member to use the global state, defining
  reusable macros.
- reorganized the information in *.h files
- removing the hid state also made the constructor changes to the hid driver
  unneeded, so I reverted those changes.

== TESTING
Confirmed clean build. Haven't tested the build yet to make sure everything
still works, though.
2018-03-31 22:25:30 -07:00
alphanu1
950719797d
Merge pull request #32 from alphanu1/alphanu1-patch-33
Add files via upload
2018-04-01 00:34:36 +01:00
alphanu1
cf23ff7a88
Add files via upload
Fixes, merged changes and additions to remove extra files.
2018-04-01 00:29:46 +01:00
alphanu1
ca55f3198e
Delete video_crt_linux.h
outdated, not needed
2018-04-01 00:27:04 +01:00
alphanu1
79eb3e6b8c
Delete video_crt_win.h
outdated, not needed
2018-04-01 00:26:44 +01:00
alphanu1
752eddbb95
Delete video_crt_linux.c
outdated, not needed
2018-04-01 00:26:24 +01:00
alphanu1
b676167ef6
Delete video_crt_win.c
outdated, not needed
2018-04-01 00:26:06 +01:00
alphanu1
d5085c8831
Merge pull request #31 from alphanu1/alphanu1-patch-32
Add files via upload
2018-04-01 00:24:50 +01:00
alphanu1
dd78622d30
Add files via upload
added files for compile
2018-04-01 00:24:26 +01:00
alphanu1
5d7e31d2f3
Merge pull request #30 from alphanu1/alphanu1-patch-31
Add files via upload
2018-04-01 00:23:32 +01:00
alphanu1
6a6150bb03
Add files via upload
Removed obsolete/unneeded .o
2018-04-01 00:23:05 +01:00
Twinaphex
28b9a38d7d
Merge pull request #6504 from Dwedit/secondary_core_bug_fix
Fixed initializing controller port map.
2018-03-31 21:09:02 +02:00
Dwedit
80b8410b0f Forgot to initialize controller port map, this caused VBA-M to crash when creating the secondary core. Now fixed. 2018-03-31 12:15:14 -05:00
alphanu1
a0c9ef55cb
Merge pull request #29 from alphanu1/alphanu1-patch-30
Add files via upload
2018-03-31 15:19:03 +01:00
alphanu1
9524203051
Add files via upload
Amended braces and function calls.
2018-03-31 15:17:55 +01:00
alphanu1
38fc89fbfc
Merge pull request #28 from alphanu1/alphanu1-patch-29
Add files via upload
2018-03-31 15:16:34 +01:00
alphanu1
64ebf62959
Add files via upload
Amended tabbing with spaces
2018-03-31 15:15:35 +01:00
Twinaphex
611cc52661
Merge pull request #6500 from Tatsuya79/master
XMB Right Thumbnail rework.
2018-03-31 14:13:25 +02:00
Twinaphex
f7fa5844f2
Merge pull request #6502 from Dwedit/master
Runahead: Stop savestate transmission in netplay
2018-03-31 11:36:46 +02:00
gblues
39e4167df6 Start work on DualShock 3 driver
== DETAILS

The WiiU GC adapter is working!

Next up: DualShock 3

I have the skeleton of the driver started, need to work out the
activation packet.

== TESTING

The DS3 driver is broke as hell right now.
2018-03-30 23:00:14 -07:00
Dwedit
6b77a66298 get rid of the unnecessary typedef 2018-03-31 00:55:37 -05:00
Dwedit
15472eb184 Stop savestate transmission in netplay 2018-03-31 00:45:20 -05:00
Twinaphex
a869cb5a7d
Merge pull request #6501 from Dwedit/fast_savestate_flag_2
Fast Savestate and Hard Audio Disable flags in RETRO_ENVIRONMENT_GET_AUDIO_VIDEO_ENABLE
2018-03-31 04:54:09 +02:00
twinaphex
9164bcc244 Add HAVE_RUNAHEAD to Android 2018-03-31 04:22:18 +02:00
gblues
d65bd90e67 Fix GC pad button mapping 2018-03-30 18:57:34 -07:00
Dwedit
36d33deb30 Add message about load state expected to succeed. 2018-03-30 20:41:52 -05:00
Dwedit
ec6d6e58d6 Fast Savestate and Hard Audio Disable flags 2018-03-30 20:35:52 -05:00
Tatsuya79
0c0cad8630 XMB Right Thumbnail rework. 2018-03-30 23:53:16 +02:00
twinaphex
cf4ab13281 Revert "Silence some Clang static analyzer warnings"
This reverts commit 2c882a01c12cd3104964c70f95b4037fdd6dc4e5.
2018-03-30 19:28:37 +02:00
twinaphex
b24433a9f2 Hack - make diagonal 5.0f for mobile, 6.5f for desktop 2018-03-30 16:05:45 +02:00
twinaphex
92b46a8275 Some cleanups 2018-03-30 15:50:27 +02:00
Twinaphex
0ff5631649
Merge pull request #6499 from Tatsuya79/patch-1
Make MUI auto dpi a bit bigger for low dpi phones
2018-03-30 15:47:17 +02:00
Tatsuya79
74d4e6043a
Make MUI auto dpi a bit bigger for low dpi phones 2018-03-30 15:44:39 +02:00
twinaphex
8acc085dec (input_overlay.c) Get rid of some forward declarations 2018-03-30 13:57:50 +02:00
twinaphex
94254e4c79 (IOHIDManager) Cleanups 2018-03-30 11:49:25 +02:00
Twinaphex
86bfd8f4fc
Merge pull request #6497 from ceb33/master
fix to have a deterministic HID device registration
2018-03-30 11:40:24 +02:00
ceb33
c6d6fc7098 fix memory leak 2018-03-30 11:00:38 +02:00
ceb33
82e2cc7c73 set hid device registration deterministic (sorting by ascending location_id), this solve the issue where game with same vid and pid where sometime swapped by the OS 2018-03-30 10:43:54 +02:00
gblues
5060c2aac4 More fixes, GC pad kinda sorta works
== DETAILS

- Added a new method to the joypad_connection_t interface for
  getting a single button
- wired everything into the hidpad driver
- for testing purposes, hacking the top-level joypad driver
  so that kpad isn't used
- add a new RARCH_LOG_BUFFER method to verbosity for logging the
  contents of a binary buffer (useful for writing/debugging pad drivers)
- fix a few bugs in the wiiu GC pad driver

The button mapping isn't quite right, and I'm not sure what's
going wrong.
2018-03-29 23:37:11 -07:00
gblues
89c1ba7929 Keep HID pads from clobbering gamepad/wiimotes
== DETAILS

Trying to do weird pad math just wasn't working so I bit the bullet and just
let it allocate all 16 pads in the slot list, then just mark 0-4 as
connected so that the slot allocator would start at 5.

I can see it detect the pad, but no idea if it works. Out of time for
today.
2018-03-29 23:37:11 -07:00
gblues
1eea48d0c8 Fix crash on exit bug
== DETAILS

Turns out freeing memory that's already been freed is.. bad.

Fix two double-free instances; one due to over-freeing and the other
due to wrong order-of-operations causing a double free.

Also updated logging a little.

== TESTING

The GC adapter still clobbers slot 0, but the "emergency exit" sequence
works to quit RA cleanly.
2018-03-29 23:37:11 -07:00
gblues
6b43defc98 Less verbose logging 2018-03-29 23:37:11 -07:00
gblues
8a4c5086fb Finish HID implementation for WiiU GCA adapter
== DETAILS

(I think)

- Uncomment the call in the read loop to start feeding packets to the
  driver
- implement the GCA packet driver
- implement the pad interface
- fix indentations in GCA driver

== TESTING
Compiles. Haven't tested yet.
2018-03-29 23:37:11 -07:00
gblues
180d6a28bf Fix up HID device driver initialization
== DETAILS
Turns out the cause of the crash was a bad cast, resulting in a
function call to nowhere.

Also, I think the DSI exception handler only works on the primary core;
when this was happening in the background thread, I got a black
screen error instead.

Next up: finishing up the GCA driver.
2018-03-29 23:37:11 -07:00
gblues
dc6f4c23ed Rename hid_driver_instance members for clarity 2018-03-29 23:37:11 -07:00
gblues
4b9d5c0ab7 Start implementing "detach" code path
== DETAILS
We're at a point where we need to do more than just
clean up a local data structure, so I've started
implementing the "detach" part of the code so that
everything gets cleaned up properly.

Also, added error handling inside the polling
thread.

== TESTING

Have not tested yet.
2018-03-29 23:37:11 -07:00
gblues
0100d58ffb WIP: evolve driver implementation
== DETAILS

I've created the concept of a hid_driver_instance_t which is basically
a central place to store the hid pad driver, hid subsystem driver,
the pad list, and the instance data for the above in a central location.

The HID pad device drivers can use it to perform HID operations in a
generic manner.

This is more-or-less a pause point so I can catch up with upstream.

== TESTING

Haven't tested this yet. Compiles without warnings though!
2018-03-29 23:37:11 -07:00
gblues
41ce8853d7 Add name for hid device; implement detect
== DETAILS

- detect() methods in device_* files now check for VID/PID
  instead of just returning false
- add "name" field on hid device, mainly for logging purposes

== TESTING
Verified my WiiU GC adapter detected properly
2018-03-29 23:37:11 -07:00