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
64ef4c4edf
dinput: Add helper function to dump mouse state.
2007-09-11 12:34:27 +02:00
Vitaliy Margolen
c78b8a17fd
dinput: Properly increment sequence number for X only movement.
2007-08-17 12:01:37 +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
deb74efc04
dinput: Handle multiple keyboard and mouse devices.
2007-07-09 14:27:25 +02:00
Vitaliy Margolen
6d6e4f4ea2
dinput: Export Mouse and Keyboard GUIDs.
2007-07-09 14:25:47 +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
Dmitry Timoshkov
3c9e7a7f33
wine: Switch to using 'long' for INT_PTR type for 64-bit compatibility.
2007-05-25 20:37:56 +02: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
dbd2112eee
dinput: Internal data format is not const anymore.
2007-01-11 11:49:12 +01:00
Vitaliy Margolen
adddc56699
dinput: Fix trace formatting.
2007-01-10 12:23:16 +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
b223b021a5
dinput: Fix memory leak.
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
4c1e52e123
dinput: Fix cut and paste error.
2007-01-04 21:14:19 +01:00
Vitaliy Margolen
f2a3ad2481
dinput: Implement mouse GetObjectInfo on top of base class.
2007-01-04 09:57:35 +01:00
Vitaliy Margolen
685a3e6a6e
dinput: Release critical section before warping mouse.
2006-12-29 12:49:41 +01:00
Vitaliy Margolen
0eb110f3ca
dinput: Move mouse to using new EnumObjects from base class.
2006-12-28 12:23:07 +01:00
Vitaliy Margolen
18ee811e4c
dinput: mouse: Copy and modify default data format.
2006-12-28 12:22:49 +01:00
Vitaliy Margolen
ce5fb9bb29
dinput: AddRef and Release parent DirectInput class.
2006-12-24 13:07:15 +01:00
Vitaliy Margolen
938657b1c1
dinput: Warp mouse in exclusive cooperation mode only.
2006-12-20 14:12:49 +01:00
Vitaliy Margolen
546c7a502d
dinput: Use GetCursorPos() to calculate relative mouse movements.
2006-12-20 14:12:42 +01:00
Vitaliy Margolen
975d7ff292
dinput: Make mouse use axis mode flag set in base class. Add tests.
2006-12-18 12:01:05 +01:00
Vitaliy Margolen
aa8392c9e7
dinput: Use standard mouse data format instead of custom one.
2006-12-12 20:24:20 +01:00
Vitaliy Margolen
6246fa62f9
dinput: Remove redundant parameter.
2006-12-12 20:24:10 +01:00
Vitaliy Margolen
d5b57f3904
dinput: Move mouse & keyboard user data format to base class.
2006-12-12 20:23:57 +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
267cbf8289
dinput: Move internal function calculate_ids to where it's really used.
2006-12-11 16:17:40 +01:00
Vitaliy Margolen
fb5884203b
dinput: Move mouse event queue into base device class.
2006-12-05 11:32:46 +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
7d838d9e6f
dinput: Use dinput device as a base class for keyboard, mouse and joystick.
2006-10-17 12:35:39 +02:00
Vitaliy Margolen
7123f3e80e
dinput: Win64 printf format warning fixes.
2006-10-09 12:53:41 +02:00
James Hawkins
553bafd535
dinput: Call missing LeaveCriticalSection in the error case (found by Smatch).
2006-10-06 15:20:41 +02:00
Ivan Leo
db782fe04a
dinput: Add some error checks to mouse.c.
2006-09-26 11:39:02 +02:00
Vitaliy Margolen
84b2d73d38
dinput: Initialize default coop level. Invert logic in hook handler.
2006-09-20 20:03:07 +02:00
Vitaliy Margolen
adadb5be78
dinput: Return proper errors in SetCooperativeLevel.
2006-09-20 12:24:14 +02:00
Vitaliy Margolen
fd6e974d92
dinput: Signal event after we queued an event. Not before.
2006-08-07 15:35:19 +02:00
Vitaliy Margolen
101e9e64e6
dinput: Warp mouse each 10ms instead of dropping events.
2006-06-23 10:45:45 +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
Vitaly Budovski
6a0e711681
dinput: Return an error if both DISCL_EXCLUSIVE and DISCL_BACKGROUND are set.
2006-02-28 12:40:13 +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