Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
c14d8951
Commit
c14d8951
authored
Jan 20, 2011
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed debug print statements
parent
e3408530
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
SDL_x11touch.c
src/video/x11/SDL_x11touch.c
+3
-11
No files found.
src/video/x11/SDL_x11touch.c
View file @
c14d8951
...
...
@@ -34,8 +34,6 @@ void
X11_InitTouch
(
_THIS
)
{
#ifdef SDL_INPUT_LINUXEV
printf
(
"Initializing touch...
\n
"
);
FILE
*
fd
;
fd
=
fopen
(
"/proc/bus/input/devices"
,
"r"
);
...
...
@@ -46,12 +44,11 @@ X11_InitTouch(_THIS)
int
vendor
=
-
1
,
product
=
-
1
,
event
=
-
1
;
while
(
!
feof
(
fd
))
{
if
(
fgets
(
line
,
256
,
fd
)
<=
0
)
continue
;
//printf("%s",line);
if
(
line
[
0
]
==
'\n'
)
{
if
(
vendor
==
1386
){
printf
(
"Wacom... Assuming it is a touch device
\n
"
);
sprintf
(
tstr
,
"/dev/input/event%i"
,
event
);
printf
(
"At location: %s
\n
"
,
tstr
);
/*printf("Wacom... Assuming it is a touch device\n");*/
/*sprintf(tstr,"/dev/input/event%i",event);*/
/*printf("At location: %s\n",tstr);*/
SDL_Touch
touch
;
touch
.
pressure_max
=
0
;
...
...
@@ -69,14 +66,9 @@ X11_InitTouch(_THIS)
data
->
up
=
SDL_FALSE
;
printf
(
"Opening device...
\n
"
);
//printf("New Touch - DataPtr: %i\n",data);
data
->
eventStream
=
open
(
tstr
,
O_RDONLY
|
O_NONBLOCK
);
ioctl
(
data
->
eventStream
,
EVIOCGNAME
(
sizeof
(
tstr
)),
tstr
);
printf
(
"Reading From : %s
\n
"
,
tstr
);
int
abs
[
5
];
ioctl
(
data
->
eventStream
,
EVIOCGABS
(
0
),
abs
);
...
...
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