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
f51e0e2d
Commit
f51e0e2d
authored
Apr 24, 2008
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Apr 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Limit number of supported axis and buttons.
parent
9b560b5d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
joystick_linux.c
dlls/dinput/joystick_linux.c
+13
-0
No files found.
dlls/dinput/joystick_linux.c
View file @
f51e0e2d
...
...
@@ -422,6 +422,19 @@ static HRESULT alloc_device(REFGUID rguid, const void *jvt, IDirectInputImpl *di
}
#endif
if
(
newDevice
->
axes
>
16
)
{
/* There are 24 more axes for velocity that we can use */
FIXME
(
"Can't support %d axes. Clamping down to 16
\n
"
,
newDevice
->
axes
);
newDevice
->
axes
=
16
;
}
if
(
newDevice
->
buttons
>
128
)
{
WARN
(
"Can't support %d buttons. Clamping down to 128
\n
"
,
newDevice
->
buttons
);
newDevice
->
buttons
=
128
;
}
newDevice
->
base
.
lpVtbl
=
jvt
;
newDevice
->
base
.
ref
=
1
;
newDevice
->
base
.
dinput
=
dinput
;
...
...
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