Francois Gouget
1e8abc3984
dinput: Make semantic_to_obj_id() static.
2011-09-02 14:42:14 +02:00
Lucas Fialho Zawacki
7e3d51b7c6
dinput: Free previous action map in SetActionMap.
2011-08-24 11:51:48 +02:00
Lucas Fialho Zawacki
4a20339346
dinput: In BuildActionMap, don't assign objects to actions mapped by an user.
2011-08-24 11:51:45 +02:00
Lucas Fialho Zawacki
d175c1526f
dinput: Common implementation for joystick, keyboard and mouse SetActionMap.
2011-08-24 11:51:42 +02:00
Lucas Fialho Zawacki
c0fd222321
dinput: Common implementation of BuildActionMap for keyboard and mouse.
2011-08-24 11:51:39 +02:00
Frédéric Delanoy
f932abf326
dlls: Assorted spelling fixes.
2011-08-01 18:26:27 +02:00
Francois Gouget
5e9a1eeeb5
dinput: Remove IDirectInputDevice8AImpl_{Build,Set}ActionMap() as it is unused.
2011-08-01 18:26:26 +02:00
Lucas Fialho Zawacki
8cc44cb8c3
dinput: SetActionMap setting the axis range according to the action format.
2011-07-22 12:57:22 +02:00
Lucas Fialho Zawacki
31fdae5b4c
dinput: BuildActionMap for all joysticks. For the moment only for buttons and axis.
2011-07-22 12:57:21 +02:00
Lucas Fialho Zawacki
efdad2c1ce
dinput: Using DIDFT_GETTYPE in EnumObjects instead of DIEFT_GETTYPE.
2011-07-15 14:43:50 +02:00
Lucas Fialho Zawacki
39684c7e3a
dinput: SetActionMap and queue_event setting mapped data.
2011-07-04 20:25:00 +02:00
Lucas Fialho Zawacki
b590090a48
dinput: SetActionMap constructing a dataformat for keyboard and mouse.
2011-07-04 20:24:48 +02:00
Lucas Fialho Zawacki
83aded2754
dinput: Keyboard and mouse implementation of BuildActionMap.
2011-07-04 20:24:10 +02:00
Lucas Fialho Zawacki
2fe9f14b29
dinput: SetActionMap setting the device buffer.
2011-06-28 16:45:56 -05:00
Vitaliy Margolen
4979d287b2
dinput: Return correct error code for DIPROP_VIDPID.
2011-02-02 12:24:07 +01:00
Vitaliy Margolen
92ac7861f5
dinput: Combine ASCII and Unicode Direct Input Device QueryInterface.
2011-01-19 12:58:29 +01:00
Vitaliy Margolen
6b30480021
dinput: COM cleanup - use interfaces instead of vtbl. Combine both Unicode and ASCII interfaces into the same classes.
2011-01-10 12:41:20 +01:00
Vitaliy Margolen
0f24b9e86f
dinput: Explicitly define ASCII and Unicode methods in DirectInputDevice base class. Make ASCII methods call Unicode. Use new methods in child classes.
2011-01-10 11:03:17 +01:00
Vitaliy Margolen
9594be7f79
dinput: Change internal check_dinput_hooks method to take W iface.
2011-01-10 11:02:16 +01:00
Vitaliy Margolen
fc023b96d2
dinput: COM cleanup - use helper function instead of direct typecast in base device class.
2011-01-10 10:58:36 +01:00
Vitaliy Margolen
15216098e0
dinput: COM cleanup - use proper DirectInput interface with IUknown calls.
2011-01-10 10:58:14 +01:00
Vitaliy Margolen
179b862738
dinput: Rename IDirectInputDevice2AImpl into IDirectInputDeviceImpl.
2011-01-03 16:46:41 +01:00
Kovács András
cde699b286
dinput: Return an error in IDirectInputDevice2AImpl_GetProperty().
2010-09-16 10:11:08 -05:00
Michael Stefaniuc
2004db1bb1
dinput: Don't use HIWORD to check if a REFGUID is a DIPROP.
2010-02-02 11:47:20 +01:00
Francois Gouget
c5b346440f
dsound: Make id_to_offset() static.
2009-12-02 14:19:50 +01:00
Vitaliy Margolen
2665272d6c
dinput: Pass event instance ID to queue_event instead of offset.
2009-11-30 12:49:11 +01:00
Michael Stefaniuc
c0d2a21dd1
dinput: Remove superfluous pointer casts.
2009-01-28 12:30:51 +01:00
Vitaliy Margolen
f6f52021f8
dinput: Copy device data up to maximum available bytes.
2009-01-08 12:54:54 +01:00
Alexandre Julliard
fffcd23cce
dinput: Fix pointer cast warnings on 64-bit.
2009-01-05 12:39:44 +01:00
Vitaliy Margolen
d2da2d378e
dinput: Allow for holes in device status structure.
2009-01-04 14:59:54 +01:00
Vitaliy Margolen
6e07c7bc14
dinput: Remove DIEnumDevicesCallbackAtoW.
...
It's no longer used.
2008-12-20 11:11:30 +01:00
Alexandre Julliard
9ef1f0fe2e
dinput: Make some functions static.
2008-12-03 12:13:37 +01:00
Vitaliy Margolen
aa0188cd6f
dinput: Zero the out buffer.
2008-07-28 12:16:34 +02:00
Vitaliy Margolen
85e2aa1d8a
dinput: Add more traces. Prevent some traces from dereferencing NULL pointer.
2008-07-07 12:11:24 +02:00
Vitaliy Margolen
382ed33b7a
dinput: Default value for unassigned POVs should be -1.
2008-05-08 18:14:18 +02:00
Francois Gouget
42a61d7ed7
Assorted spelling fixes.
2008-05-06 16:10:20 +02:00
Marcus Meissner
494dd5f1fa
dinput: Some debug output for BuildActionMap.
2008-02-18 12:41:37 +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
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
Vitaliy Margolen
355b39cd71
dinput: Fix typo.
2007-10-01 12:34:12 +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
Vitaliy Margolen
9e36848303
dinput: Fix mapping of axes ids to property ids.
2007-08-06 14:01:54 +02:00
Vitaliy Margolen
8f28d4369e
dinput: Rename set_dinput_hook and call it from the base class.
...
Since keyboard's acquire and unacquire don't do anything special just call
the base class.
2007-07-09 14:31:38 +02:00
Vitaliy Margolen
448dde9be8
dinput: Keep the list of all the dinput devices created for each IDIrectInput object.
2007-07-09 14:25:33 +02:00
Vitaliy Margolen
fb1082ae73
dinput: Combine all Release functionality into base class.
2007-06-28 12:16:11 +02:00
Vitaliy Margolen
f83b53c160
dinput: Acquire device only if specified window has focus in foreground coop level.
2007-06-04 13:10:10 +02:00
Andrew Talbot
5e1ca16052
dinput: Constify some variables.
2007-04-24 11:53:46 +02:00
Vitaliy Margolen
cb0e61c356
dinput: Set the event regardless of the queue state.
2007-04-09 12:19:01 +02:00
Marcus Meissner
1fc5160ce8
dinput: Fix dereference pointer after NULL check (Coverity).
2007-02-05 14:02:23 +01:00
Vitaliy Margolen
a1dd4cb76a
dinput: Don't copy no longer used user data format object array.
2007-01-11 11:49:01 +01:00
Vitaliy Margolen
da78a7af5e
dinput: Use internal data format for object lookups.
2007-01-11 11:48:55 +01:00
Vitaliy Margolen
cd306046bb
dinput: Pass complete DataFormat structure to find_property.
2007-01-10 12:23:28 +01:00
Vitaliy Margolen
4b33fd691a
dinput: Set event from queue_event, simplifying code a bit.
2007-01-08 21:13:40 +01:00
Vitaliy Margolen
005bb87342
dinput: Fix possible NULL deference.
2007-01-06 11:40:46 +01:00
Vitaliy Margolen
30e2fbcb6e
dinput: Fix mouse to use proper offset when queuing new events. Add handling of X-buttons.
...
We should use instance IDs instead of sequential numbers to get correct offset.
2007-01-06 11:40:46 +01:00
Vitaliy Margolen
504798ce9f
dinput: Change EnumObjects to use GetObjectInfo.
...
Also small debug trace correction to make it more readable.
2007-01-05 18:23:46 +01:00
Vitaliy Margolen
0edc6e26a7
dinput: Implement GetObjectInfo[A|W] in base device class.
2007-01-04 09:57:05 +01:00
Vitaliy Margolen
263d5ce171
dinput: Move keyboard to using new EnumObjects from base class.
2006-12-29 20:54:38 +01:00
Vitaliy Margolen
42feef0c7b
dinput: Implement EnumOjects[A|W] in the base device class.
2006-12-28 12:23:02 +01:00
Christoph Frick
e4a6562937
dinput: Drop magic int.
2006-12-20 17:41:09 +01:00
Vitaliy Margolen
7b07e4b563
dinput: Add handling of AXISMODE property to base device object.
2006-12-18 12:00:50 +01:00
Vitaliy Margolen
6246fa62f9
dinput: Remove redundant parameter.
2006-12-12 20:24:10 +01:00
Vitaliy Margolen
3446caab56
dinput: Add user data format into base class. Implement SetDataFormat.
2006-12-12 20:22:53 +01:00
Vitaliy Margolen
cd050bf25c
dinput: Move transform and offsets structures into base device class.
2006-12-12 20:22:44 +01:00
Vitaliy Margolen
68176eeda1
dinput: Move few helper functions and standardize them.
2006-12-11 16:17:46 +01:00
Vitaliy Margolen
267cbf8289
dinput: Move internal function calculate_ids to where it's really used.
2006-12-11 16:17:40 +01:00
Vitaliy Margolen
5b520ff6df
dinput: Remove incorrect assumption about format.
2006-12-11 13:50:32 +01:00
Vitaliy Margolen
1056c881e1
dinput: Fix processing of custom format.
2006-12-11 12:17:26 +01:00
Vitaliy Margolen
ce0c3cdae7
dinput: Implement [Get|Set]Property and GetDeviceData in base Device object.
...
Also add queue_event to replace big macro GEN_EVENT.
2006-12-05 11:32:34 +01:00
Vitaliy Margolen
0da0486cc3
dinput: Move critical section to the base device class.
2006-12-04 12:33:47 +01:00
Vitaliy Margolen
f7eacd64d1
dinput: Move acquired flag to the base device class. Add tests.
2006-12-04 12:33:35 +01:00
Vitaliy Margolen
1dae4c6832
dinput: Move SetCooperativeLevel into base class.
2006-10-17 12:36:13 +02:00
Vitaliy Margolen
af34ef12ba
dinput: Move SetEventNotification and associated event into base class.
2006-10-17 12:36:00 +02:00
Vitaliy Margolen
7123f3e80e
dinput: Win64 printf format warning fixes.
2006-10-09 12:53:41 +02:00
Vitaliy Margolen
722a686d66
dinput: Move hook_thread from device to DirectInput.
2006-09-11 17:45:42 +02:00
Andrew Talbot
78cdd5460c
dinput: Cast-qual warnings fix.
2006-09-10 10:16:47 +02:00
Vitaliy Margolen
eb3028acc0
dinput: Add DISCL_NOWINKEY define.
2006-07-29 11:50:19 +02:00
Michael Stefaniuc
932a2a0d54
Fix swapped 2nd and 3rd argument passed to memset.
2006-07-14 12:38:36 +02:00
Alexandre Julliard
7ad5f9eca0
dinput: Don't use sizeof in traces to avoid printf format warnings.
2006-06-13 14:09:55 +02:00
Jonathan Ernst
360a3f9142
Update the address of the Free Software Foundation.
2006-05-23 14:11:13 +02:00
Vitaliy Margolen
e66e34ef7b
dinput: Create single thread for mouse and keyboard hook.
...
Put keyboard & mouse hook callbacks into separate thread.
Move few global variables into object. Delete no longer used crit section.
For hooks to work properly hook callback have to be in a thread
with message loop. Some games create separate threads just to handle
mouse and/or keyboard events that do not have message loop.
2006-03-21 11:27:49 +01:00
Lionel Ulmer
809dd5b044
Handle DInput8 interfaces in device QueryInterface.
2005-11-28 10:38:59 +01:00
Francois Gouget
0edbaf7e80
Remove spaces before '\n' in traces.
2005-11-10 12:14:56 +00:00
Alexandre Julliard
f8ee161a1b
Fixed some traces to use the right printf format and avoid typecasts.
2005-09-12 10:30:05 +00:00
Robert Reif
2d9e2a3300
Effect objects are not supported yet so don't crash when trying to
...
enumerate them.
2005-05-16 14:07:36 +00:00
Robert Reif
2095f66d44
Fix joystick crash when a button guid is specified in the data
...
format.
Add some parameter checking.
2005-05-10 13:17:03 +00:00
Lionel Ulmer
fa8d7a0fe6
- more pretty print for the types flag
...
- more Windows-aligned check for object instances
2005-05-05 09:49:54 +00:00
Marcus Meissner
accf3ee2e6
Fixed 3 memset()s which used the wrong size (too large).
2005-04-25 10:48:38 +00:00
Jakob Eriksson
9ed61de9a2
Get rid of HeapAlloc casts.
2005-03-24 21:01:35 +00:00
Carlos Lozano
1b73419ffc
Fix regression in Fallout game.
2005-02-08 12:11:12 +00:00
Robert Reif
873e5bfe29
Use InterlockedIncrement/InterlockedDecrement for reference counting.
...
Fix bug in effect enumeration that crashed dxcapsviewer.
2004-09-17 18:10:41 +00:00
Alexandre Julliard
314b99c48f
Removed some more uses of the non-standard ICOM_THIS macro.
2004-09-09 20:17:07 +00:00
Hans Leidekker
fe442b21f7
Fix signed/unsigned comparison warnings.
2004-09-08 01:23:57 +00:00
Robert Reif
3c3a511e8d
When actual offset doesn't match the specified offset, use the actual
...
offset.
2004-09-06 21:26:03 +00:00
Robert Reif
0b12efaa9e
Added support for alternate data formats.
2004-09-02 20:09:54 +00:00
Robert Reif
e2b882aced
Added default data formats for c_dfDIJoystick and c_dfDIJoystick2.
...
Added object properties for more than one object.
Added error checks for acquired.
Default to using c_dfDIJoystick2 data format.
Try to use user supplied data formats (only works if same as one of
the defaults).
Code cleanup, error checking and tracing added.
Added support for up to 8 axis.
2004-08-31 18:51:23 +00:00
Lionel Ulmer
04d77f4dcc
- some TRACEing improvements
...
- fix mouse Acquire which switched right and middle buttons
- reset the mouse cursor at its original location on Unacquiring the
device
2004-06-02 00:36:54 +00:00