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
e6649952
Commit
e6649952
authored
Aug 30, 2010
by
Andrew Talbot
Committed by
Alexandre Julliard
Aug 31, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Constify some variables.
parent
3a7f08a5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
device_private.h
dlls/dinput/device_private.h
+1
-1
joystick.c
dlls/dinput/joystick.c
+1
-1
joystick_private.h
dlls/dinput/joystick_private.h
+1
-1
mouse.c
dlls/dinput/mouse.c
+1
-1
No files found.
dlls/dinput/device_private.h
View file @
e6649952
...
...
@@ -94,7 +94,7 @@ typedef struct
LONG
lSaturation
;
}
ObjProps
;
extern
DWORD
joystick_map_pov
(
POINTL
*
p
);
extern
DWORD
joystick_map_pov
(
const
POINTL
*
p
);
extern
LONG
joystick_map_axis
(
ObjProps
*
props
,
int
val
);
typedef
struct
...
...
dlls/dinput/joystick.c
View file @
e6649952
...
...
@@ -434,7 +434,7 @@ LONG joystick_map_axis(ObjProps *props, int val)
* 22500 13500
* 18000
*/
DWORD
joystick_map_pov
(
POINTL
*
p
)
DWORD
joystick_map_pov
(
const
POINTL
*
p
)
{
if
(
p
->
x
>
0
)
return
p
->
y
<
0
?
4500
:
!
p
->
y
?
9000
:
13500
;
...
...
dlls/dinput/joystick_private.h
View file @
e6649952
...
...
@@ -55,7 +55,7 @@ typedef struct JoystickGenericImpl
LONG
joystick_map_axis
(
ObjProps
*
props
,
int
val
);
HRESULT
setup_dinput_options
(
JoystickGenericImpl
*
This
,
const
int
*
default_axis_map
);
DWORD
joystick_map_pov
(
POINTL
*
p
);
DWORD
joystick_map_pov
(
const
POINTL
*
p
);
HRESULT
WINAPI
JoystickWGenericImpl_GetObjectInfo
(
LPDIRECTINPUTDEVICE8W
iface
,
LPDIDEVICEOBJECTINSTANCEW
pdidoi
,
DWORD
dwObj
,
DWORD
dwHow
);
...
...
dlls/dinput/mouse.c
View file @
e6649952
...
...
@@ -84,7 +84,7 @@ const GUID DInput_Wine_Mouse_GUID = { /* 9e573ed8-7734-11d2-8d4a-23903fb6bdf7 */
0x9e573ed8
,
0x7734
,
0x11d2
,
{
0x8d
,
0x4a
,
0x23
,
0x90
,
0x3f
,
0xb6
,
0xbd
,
0xf7
}
};
static
void
_dump_mouse_state
(
DIMOUSESTATE2
*
m_state
)
static
void
_dump_mouse_state
(
const
DIMOUSESTATE2
*
m_state
)
{
int
i
;
...
...
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