Commit Graph

411 Commits

Author SHA1 Message Date
Andrew Talbot 05ea03c00b dinput: Assign to struct instead of using CopyMemory. 2008-03-29 10:30:24 +01:00
Austin English 06d429d6b6 Spelling fixes. 2008-03-27 20:48:19 +01:00
Paul Vriens a85c7594dc dinput/tests: Don't treat old dinput versions as an error. 2008-03-10 11:22:30 +01:00
Rob Shearman 48000893f9 makefiles: Simplify the use of the IMPORTLIB variable in the DLL makefiles.
Only specify the root to keep platform-specifics out of the individual 
DLL makefiles.
2008-03-04 20:55:01 +01:00
Andrew Talbot da0a48d235 dinput: Assign to structs instead of using memcpy. 2008-03-01 12:02:19 +01:00
Rob Shearman 376be08a7c dinput: Include fcntl.h instead of sys/fcntl.h since they are equivalent and the former is more portable. 2008-02-28 10:50:57 +01:00
Francois Gouget 8e97ff5e3b dinput: Fix compilation on systems that don't support nameless unions. 2008-02-26 11:21:17 +01:00
Rob Shearman fe75a8c616 dinput: Fix character count passed to GetKeyNameTextW in SysKeyboardWImpl_GetObjectInfo. 2008-02-25 13:31:34 +01:00
Marcus Meissner 494dd5f1fa dinput: Some debug output for BuildActionMap. 2008-02-18 12:41:37 +01:00
Marcus Meissner f1a688a946 dinput: Removed superflous < 0 check. 2008-02-16 15:11:12 +01:00
Marcus Meissner da77b8a0f3 dinput: Add debug output for IDirectInput8A::EnumDevicesBySemantics. 2008-02-16 15:11:00 +01:00
Marcus Meissner 9ce27fc7c1 dinput: Add a dumper for LPDIACTIONFORMAT.
Also make the DINPUT_instance static.
2008-02-16 15:10:47 +01:00
Vitaliy Margolen 971c4e19d6 dinput: Don't use event times, report current tick count instead. 2008-02-15 10:12:51 +01:00
Vitaliy Margolen eca356829c Revert "dinput: Skip old mouse movement events.".
This reverts commit 3187669512.
2008-02-15 10:12:45 +01:00
Marcus Meissner 9438ebfa20 dinput: Make _dump_mouse_state static. 2008-02-12 22:36:13 +01:00
Vitaliy Margolen 3187669512 dinput: Skip old mouse movement events. 2008-02-11 21:00:09 +01:00
Peter Dons Tychsen 53f64a09cf dinput: Silence incorrect warning and move it to a valid place. 2008-01-07 14:25:19 +01:00
Lionel Debroux efc81cb233 dinput: Improve TRACEs and WARNs. 2008-01-02 13:19:48 +01:00
Francois Gouget 96d6a25fa1 dinput: Make _dump_cooperativelevel_DI() and _dump_EnumDevices_dwFlags() more self-contained. 2007-12-18 12:32:56 +01:00
Andrew Riedi e0740a7a60 dinput: DPRINTF -> TRACE. 2007-12-12 13:48:57 +01:00
Andrew Talbot 39b99d47ad dinput: Remove unneeded casts. 2007-12-07 17:36:01 +01:00
Andrew Talbot 1067f56ca5 dinput: Use bitwise NOT not logical NOT. 2007-11-27 12:29:52 +01:00
Vitaliy Margolen 1ed3a815ed dinput: Fix dead zone handling. 2007-11-26 12:27:39 +01:00
Michael Stefaniuc 3e8970602c dlls: Remove duplicate includes. 2007-11-19 13:54:46 +01:00
Vitaliy Margolen ba2e3f57d2 dinput: Add stub for DIPROP_AUTOCENTER property. 2007-11-05 14:46:30 +01:00
Gerald Pfeifer 79ccb7889c dinput: Fix type of loop variable in alloc_device(). 2007-11-02 12:37:09 +01:00
Vitaliy Margolen 7e6d0e71eb dinput: Use ClipCursor() to keep mouse from leaving the window. 2007-10-10 12:16:16 +02:00
Vitaliy Margolen 355b39cd71 dinput: Fix typo. 2007-10-01 12:34:12 +02:00
Vitaliy Margolen 7123d5a0a3 dinput: Implement GetDeviceInfo for evdev joystick. 2007-09-25 11:55:32 +02:00
Vitaliy Margolen ac3668a057 dinput: Make default dead zone configurable. 2007-09-25 11:55:26 +02:00
Vitaliy Margolen 8ff85c08b6 dinput: Add a helper function to open configuration registry keys. 2007-09-25 11:55:23 +02:00
Vitaliy Margolen 319097f563 dinput: Move get_config_key to a common place. 2007-09-25 11:55:19 +02:00
Stefan Leichter dd8c4a9583 dinput: Remove 'recursive registry key delete' function. 2007-09-24 13:44:53 +02:00
Vitaliy Margolen 278cc8e28d dinput: When setting hooks ignore devices without even handler. 2007-09-11 12:34:29 +02:00
Vitaliy Margolen 64ef4c4edf dinput: Add helper function to dump mouse state. 2007-09-11 12:34:27 +02:00
Vitaliy Margolen c6784cdad3 dinput: Count should not be 0-based. 2007-08-27 12:01:43 +02:00
Vitaliy Margolen fc0298429a dinput: Fix compile with old input.h that missing input_absinfo. 2007-08-21 21:39:10 +02:00
Vitaliy Margolen e2e3d19351 dinput: Don't try to create non existing device (/dev/js*). 2007-08-21 12:41:57 +02:00
Vitaliy Margolen 81fc89fa6d dinput: Check acquired flag instead of fd. 2007-08-20 22:32:53 +02:00
Vitaliy Margolen 3cd13628aa dinput: Use correct data structure for EVIOCGABS instead of an array. 2007-08-20 22:32:51 +02:00
Vitaliy Margolen ca8a0a8aaa dinput: Remove redundant declaration. 2007-08-20 22:32:45 +02:00
Vitaliy Margolen f47c63a1f9 dinput: Don't try to create non existing device. 2007-08-20 22:32:40 +02:00
Vitaliy Margolen c78b8a17fd dinput: Properly increment sequence number for X only movement. 2007-08-17 12:01:37 +02:00
Vitaliy Margolen 51fac7f28a dinput: Fix dead zone calculation.
Based on patch by Artur Szymiec.
2007-08-14 20:29:21 +02:00
Peter Dons Tychsen 2cea950e99 dinput: Allow the use of the standard Joystick GUID when calling CreateDevice. 2007-08-08 15:32:04 +02:00
Vitaliy Margolen b06786940c dinput: Reuse common code and definition.
Unify object properties structure and he common axis mapping function
for both joystick drivers.
2007-08-06 14:02:41 +02:00
Vitaliy Margolen 19183e71d4 dinput: Fix POV calculation.
Combine and simplify the POV calculations. Linux provides X,Y for the POV.
While DirectInput returns dial-degrees*1000 (12 o-click is 0 degrees).
2007-08-06 14:02:26 +02:00
Vitaliy Margolen 1fdc0230f0 dinput: Fix handling of dead-zone in evdev joystick.
USB joysticks can and do provide dead-zone area. Use it to initialize
the initial dead-zone.
2007-08-06 14:02:02 +02:00
Vitaliy Margolen 9e36848303 dinput: Fix mapping of axes ids to property ids. 2007-08-06 14:01:54 +02:00
Erik Inge Bolsø 176c567cb3 dinput: Fix joystick axis remapping. 2007-08-02 12:18:41 +02:00