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
0b12efaa
Commit
0b12efaa
authored
Sep 02, 2004
by
Robert Reif
Committed by
Alexandre Julliard
Sep 02, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for alternate data formats.
parent
6825ed81
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
device.c
dlls/dinput/device.c
+8
-1
device_private.h
dlls/dinput/device_private.h
+2
-1
joystick_linux.c
dlls/dinput/joystick_linux.c
+0
-0
No files found.
dlls/dinput/device.c
View file @
0b12efaa
...
...
@@ -211,7 +211,7 @@ void _dump_DIDATAFORMAT(const DIDATAFORMAT *df) {
}
/* Conversion between internal data buffer and external data buffer */
void
fill_DataFormat
(
void
*
out
,
void
*
in
,
DataFormat
*
df
)
{
void
fill_DataFormat
(
void
*
out
,
const
void
*
in
,
DataFormat
*
df
)
{
int
i
;
char
*
in_c
=
(
char
*
)
in
;
char
*
out_c
=
(
char
*
)
out
;
...
...
@@ -274,6 +274,13 @@ void fill_DataFormat(void *out, void *in, DataFormat *df) {
}
}
void
release_DataFormat
(
DataFormat
*
format
)
{
TRACE
(
"Deleting DataTransform :
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
format
->
dt
);
}
DataFormat
*
create_DataFormat
(
const
DIDATAFORMAT
*
wine_format
,
LPCDIDATAFORMAT
asked_format
,
int
*
offset
)
{
DataFormat
*
ret
;
DataTransform
*
dt
;
...
...
dlls/dinput/device_private.h
View file @
0b12efaa
...
...
@@ -48,8 +48,9 @@ typedef struct {
int
internal_format_size
;
DataTransform
*
dt
;
}
DataFormat
;
extern
void
fill_DataFormat
(
void
*
out
,
void
*
in
,
DataFormat
*
df
)
;
extern
void
fill_DataFormat
(
void
*
out
,
const
void
*
in
,
DataFormat
*
df
)
;
extern
DataFormat
*
create_DataFormat
(
const
DIDATAFORMAT
*
wine_format
,
LPCDIDATAFORMAT
asked_format
,
int
*
offset
)
;
extern
void
release_DataFormat
(
DataFormat
*
df
)
;
/* Used to fill events in the queue */
#define GEN_EVENT(offset,data,xtime,seq) \
...
...
dlls/dinput/joystick_linux.c
View file @
0b12efaa
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