Nathan Woods
85ba2fde28
Bulk renaming of Windows string conversion functions
...
utf8_from_[a|w|t]string ==> osd::text::from_[a|w|t]string
[a|w|t]string_from_utf8 ==> osd::text::to_[a|w|t]string
2016-10-03 23:20:25 -04:00
Tomer Verona
845b36dae2
Adding id() property to input_device
...
This change adds id() property to input_device, which represents the
unique device id. This allows the osd layer when creating a device to
pass a friendly display name along with a unique identifier.
Currently the device id is only used to map a physical controller device
to controller id, but can be used more generally in the future. For raw
input devices, we use the full raw input name as the device id. For all
other devices, we fall back to device name as the device id. The
"uniqueness" of the device id is not currently enforced in code.
2016-09-20 12:19:58 -07:00
Brad Hughes
7d3ce203b5
osd input code cleanup (nw)
2016-08-22 15:02:56 -04:00
Miodrag Milanovic
185f5059fb
algorithm-> utility where appropriate, fix imgtool (nw)
2016-07-31 15:37:37 +02:00
Miodrag Milanovic
9667c6a8cc
std::min and std:max instead of MIN and MAX, also some more macros converted to inline functions (nw)
2016-07-31 14:41:02 +02:00
Nathan Woods
ab73291e47
Changed strconv.[cpp|h] functions to return their results as std::string and std::wstring
2016-07-24 22:55:00 -04:00
Brad Hughes
7babf07020
Fix input issues on big endian systems ( fixes #963 )
2016-06-29 10:02:26 -04:00
Giuseppe Gorgoglione
58dc78b6eb
Introduce dynamic_module
...
This is a central cross-platform facility to dynamically bind functions from shared libraries.
Updated all OSD modules to use it.
2016-06-11 20:14:09 +02:00
Brad Hughes
1f8cf36ec9
Move window_list to osd_common_t
2016-06-11 12:02:22 -04:00
Brad Hughes
6bea81d33a
Unify window_list in Windows and SDL OSD
2016-06-10 22:55:00 -04:00
Quench0
7d7d366223
Improve support for more Joysticks with DirectInput8. Also repair DirectInput7 compile.
2016-05-20 18:05:14 +10:00
Miodrag Milanovic
cfee536f22
Cleanups and version bump
2016-04-27 08:13:59 +02:00
Miodrag Milanovic
9c2ef88573
Revert "Temp revert of Brad changes (nw)"
...
This reverts commit 5e831f6506
.
2016-04-25 17:22:25 +02:00
Miodrag Milanovic
5e831f6506
Temp revert of Brad changes (nw)
2016-04-25 17:09:47 +02:00
Miodrag Milanovic
89c5e1f681
Various cleanups suggested by static analyzer (nw)
2016-04-24 12:58:31 +02:00
Brad Hughes
1a844a49c5
Refactor OSD window.
...
Unified renderer in osd_window as std::unique_ptr
Made windows all std::shared_ptr<window_type>
Made window lists std::list<std::shared_ptr<window_type>>
Updated OSD SDL worker_param to not use malloc (not compatible with smart
pointers)
Made renderer pointer to window a weak reference. May not be available
during destruction of the window.
2016-04-21 11:10:03 -04:00
Brad Hughes
3dd8afd6c0
Hybrid DirectInput/XInput module
2016-04-04 22:01:00 -04:00
Miodrag Milanovic
913ab1e140
Cleanups and version bump
2016-03-30 08:35:21 +02:00
Jeffrey Clark
3fcb69a1f2
Fix cross compile (nw)
2016-03-23 15:37:11 -05:00
Brad Hughes
9328fa9028
Fix VS Build issue for WRL ComPtr
2016-03-19 21:43:27 -04:00
dankan1890
5410d5a40a
temporary fix for VS build. (nw)
2016-03-20 00:47:54 +01:00
Brad Hughes
44a3589fd0
Fix DirectInput stuck joystick directional input when window loses focus. The reset function for the device was overwriting the axis information previously obtained. Changed it to correctly only reset the state member.
2016-03-18 22:57:16 -04:00
Brad Hughes
cadc351289
General code cleanup in input modules. Using ComPtr to manage DirectInput resources.
2016-03-18 22:51:06 -04:00
Brad Hughes
4e214fd08d
Rewrote overly complex rawinput_device_improve_name function for rawinput module, plus fixing some other defects in input modules as detected by coverity.
2016-03-18 00:13:45 -04:00
Miodrag Milanovic
679574e965
With latest package from MSYS of clang 3.8.0 build at least compile fine on windows (nw)
...
Strange crashing while executing
2016-03-11 15:00:29 +01:00
Brad Hughes
babce5a0c7
Minor fixes for DirectInput 7
2016-03-01 19:11:23 -05:00
Miodrag Milanovic
7936291894
fix compile on 32bit mingw (nw)
2016-02-29 10:10:50 +01:00
Miodrag Milanovic
4224b67779
cleanup (nw)
2016-02-29 08:52:04 +01:00
Brad Hughes
7dfb578559
Refactor OSD input into modules
2016-02-28 14:25:10 -05:00