Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
629b9fa4
Commit
629b9fa4
authored
Feb 09, 1999
by
Lionel Ulmer
Committed by
Alexandre Julliard
Feb 09, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added buffered device access for DInput's mouse driver.
parent
63956827
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
+21
-4
dinput.h
include/dinput.h
+21
-4
dinput.c
windows/dinput.c
+0
-0
No files found.
include/dinput.h
View file @
629b9fa4
...
...
@@ -2,6 +2,7 @@
#define _WINE_DINPUT_H
#include "unknwn.h"
#include "mouse.h"
#define STDMETHOD(xfn) HRESULT (CALLBACK *fn##xfn)
#define STDMETHOD_(ret,xfn) ret (CALLBACK *fn##xfn)
...
...
@@ -716,20 +717,36 @@ struct IDirectInputDevice32A {
};
/* "Standard" Mouse report... */
struct
DIMOUSESTATE
{
typedef
struct
DIMOUSESTATE
{
LONG
lX
;
LONG
lY
;
LONG
lZ
;
BYTE
rgbButtons
[
4
];
};
}
DIMOUSESTATE
;
#define DIMOFS_X FIELD_OFFSET(DIMOUSESTATE, lX)
#define DIMOFS_Y FIELD_OFFSET(DIMOUSESTATE, lY)
#define DIMOFS_Z FIELD_OFFSET(DIMOUSESTATE, lZ)
#define DIMOFS_BUTTON0 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 0)
#define DIMOFS_BUTTON1 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 1)
#define DIMOFS_BUTTON2 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 2)
#define DIMOFS_BUTTON3 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 3)
struct
SysMouse32A
{
LPDIRECTINPUTDEVICEA_VTABLE
lpvtbl
;
DWORD
ref
;
GUID
guid
;
BYTE
absolute
;
/* Previous position for relative moves */
LONG
prevX
;
LONG
prevY
;
LONG
prevX
,
prevY
;
LPMOUSE_EVENT_PROC
prev_handler
;
HWND32
win
;
int
xwin
;
DWORD
win_centerX
,
win_centerY
;
LPDIDEVICEOBJECTDATA
data_queue
;
int
queue_pos
,
queue_len
;
int
need_warp
;
int
acquired
;
};
struct
SysKeyboard32A
{
...
...
windows/dinput.c
View file @
629b9fa4
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment