Commit Graph

105 Commits

Author SHA1 Message Date
Vitaliy Margolen 3223798d30 dinput: Make props array a part of the generic joystick struct.
It's much easier to free it on release.
2009-04-20 14:30:03 +02:00
Vitaliy Margolen aee4237798 dinput: Remove redundant stuff. 2009-04-20 14:29:55 +02:00
Vitaliy Margolen fc4f1607a6 dinput: Make EnumDevices and GetObjectInfo consistent about GUIDs.
guidInstance should be the same from both places.
2009-04-20 14:29:49 +02:00
Aric Stewart 5dbe136027 dinput: Create generic joystick Acquire/Unacquire. 2009-03-10 14:40:19 +01:00
Aric Stewart 922b66e354 dinput: Rename Linux-specific joystick functions. 2009-03-10 14:39:49 +01:00
Aric Stewart 94a5e0978d dinput: Move joystick Polling and Device State to the generic part. 2009-03-10 14:39:03 +01:00
Aric Stewart cbd34748e9 dinput: Move joystick productGuid and Name to the generic part. 2009-03-10 14:38:29 +01:00
Aric Stewart 620839d24e dinput: Begin joystick separation into a generic module. 2009-03-10 14:38:00 +01:00
Alexandre Julliard f6eb03d6c6 dinput: Avoid size_t in traces. 2009-01-08 13:12:08 +01:00
Alexandre Julliard fffcd23cce dinput: Fix pointer cast warnings on 64-bit. 2009-01-05 12:39:44 +01:00
Vitaliy Margolen 095ba950d6 dinput: Use correct GetObjectInfo for joystick. 2008-12-01 12:45:34 +01:00
Andrew Talbot c1d5dfe84b dinput: Sign-compare warnings fix. 2008-09-30 10:57:23 -05:00
Vitaliy Margolen aa0188cd6f dinput: Zero the out buffer. 2008-07-28 12:16:34 +02:00
Vitaliy Margolen 9227e25660 dinput: Ignore events from extra joystick buttons. 2008-05-07 17:50:50 +02:00
Vitaliy Margolen bdbc2783a1 dinput: Limit number of axes in a different way - map all extra axes to -1.
We can't stop device from sending us extra axes so have to keep axes mapping
around for them.
2008-05-07 17:50:42 +02:00
Vitaliy Margolen b07ff6ec86 dinput: Remove redundant variable. 2008-05-07 17:49:38 +02:00
Vitaliy Margolen 97535fe243 dinput: Fix typo. 2008-04-29 12:29:18 +02:00
Vitaliy Margolen 736d03c8da dinput: Fix default axes mapping generation. 2008-04-28 14:32:40 +02:00
Vitaliy Margolen f51e0e2d26 dinput: Limit number of supported axis and buttons. 2008-04-25 15:00:32 +02:00
Andrew Talbot 6657cfe70d dinput: Fix handle leak. 2008-04-16 14:07:50 +02:00
Vitaliy Margolen b9801bba31 dinput: Assign button GUID to joystick buttons. 2008-04-14 12:40:22 +02:00
Andrew Talbot 05ea03c00b dinput: Assign to struct instead of using CopyMemory. 2008-03-29 10:30:24 +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
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
Michael Stefaniuc 3e8970602c dlls: Remove duplicate includes. 2007-11-19 13:54:46 +01: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
Vitaliy Margolen c6784cdad3 dinput: Count should not be 0-based. 2007-08-27 12:01:43 +02:00
Vitaliy Margolen e2e3d19351 dinput: Don't try to create non existing device (/dev/js*). 2007-08-21 12:41:57 +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 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
Vitaliy Margolen ed4f1e8ec7 dinput: Fix typo. 2007-07-30 13:00:01 +02:00
Vitaliy Margolen fb1082ae73 dinput: Combine all Release functionality into base class. 2007-06-28 12:16:11 +02:00
Vitaliy Margolen d2966c2dfb dinput: Move parent dinput reference into base class. 2007-06-28 12:16:11 +02:00
Vitaliy Margolen 6a8bf96d73 dinput: Make sure to unacquire device before freeing it. 2007-06-04 13:10:04 +02:00
Andrew Talbot 5e1ca16052 dinput: Constify some variables. 2007-04-24 11:53:46 +02:00
Andrew Talbot 08e1481d8e dinput: Replace inline static with static inline. 2007-03-21 11:55:33 +01:00
Jan Zerebecki 52a630a3a8 dinput: Add DebugInfo to critical sections. 2007-03-08 22:21:43 +01:00
Andrew Talbot e744c3a5b1 dinput: Constify some variables. 2007-02-13 12:08:26 +01:00
Vitaliy Margolen a06821765a dinput: Don't reset dead zone and saturation when setting data format.
Additional tests indicate that native doesn't touch previously set
properties.
2007-02-06 20:23:28 +01:00
Vitaliy Margolen 17839bab6c dinput: Use correct flag for object instance.
DIDFT_AXIS is a generic mask for absolute and relative axes.
2007-02-06 12:30:39 +01:00
Vitaliy Margolen 10fca47ba4 dinput: Look for all available js* joystick devices. 2007-02-06 12:30:34 +01:00
Vitaliy Margolen 45b8d865b4 dinput: Don't reset user specified range in SetDataFormat. With tests. 2007-02-05 14:03:28 +01:00
Alexandre Julliard 4ae5b9fd33 dinput: Undefine SW_MAX to avoid possible conflicts with winuser.h. 2007-01-22 12:11:04 +01:00
Vitaliy Margolen dbd2112eee dinput: Internal data format is not const anymore. 2007-01-11 11:49:12 +01:00
Vitaliy Margolen 1bc557eea0 dinput: [joystick_linux] Use correct offset to queue events. 2007-01-11 11:45:55 +01:00