Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
e3afe966
Commit
e3afe966
authored
Jul 03, 2002
by
Vojtech Pavlik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix button assignments for Saturn and PSX pads.
parent
eeb47d00
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
drivers/input/joystick/db9.c
drivers/input/joystick/db9.c
+6
-6
drivers/input/joystick/gamecon.c
drivers/input/joystick/gamecon.c
+3
-3
No files found.
drivers/input/joystick/db9.c
View file @
e3afe966
/*
* $Id: db9.c,v 1.1
2 2002/01/22 20:27:05
vojtech Exp $
* $Id: db9.c,v 1.1
3 2002/04/07 20:13:37
vojtech Exp $
*
* Copyright (c) 1999-2001 Vojtech Pavlik
*
...
...
@@ -199,7 +199,7 @@ static void db9_timer(unsigned long private)
data
=
parport_read_data
(
port
);
input_report_key
(
dev
,
BTN_A
,
~
data
&
DB9_FIRE1
);
input_report_key
(
dev
,
BTN_
X
,
~
data
&
DB9_FIRE2
);
input_report_key
(
dev
,
BTN_
START
,
~
data
&
DB9_FIRE2
);
parport_write_control
(
port
,
DB9_NOSELECT
);
/* 2 */
udelay
(
DB9_GENESIS6_DELAY
);
...
...
@@ -209,10 +209,10 @@ static void db9_timer(unsigned long private)
udelay
(
DB9_GENESIS6_DELAY
);
data
=
parport_read_data
(
port
);
input_report_key
(
dev
,
BTN_
Y
,
~
data
&
DB9_LEFT
);
input_report_key
(
dev
,
BTN_
Z
,
~
data
&
DB9_DOWN
);
input_report_key
(
dev
,
BTN_
MODE
,
~
data
&
DB9_UP
);
input_report_key
(
dev
,
BTN_
START
,
~
data
&
DB9_RIGHT
);
input_report_key
(
dev
,
BTN_
X
,
~
data
&
DB9_LEFT
);
input_report_key
(
dev
,
BTN_
Y
,
~
data
&
DB9_DOWN
);
input_report_key
(
dev
,
BTN_
Z
,
~
data
&
DB9_UP
);
input_report_key
(
dev
,
BTN_
MODE
,
~
data
&
DB9_RIGHT
);
parport_write_control
(
port
,
DB9_NORMAL
);
udelay
(
DB9_GENESIS6_DELAY
);
...
...
drivers/input/joystick/gamecon.c
View file @
e3afe966
/*
* $Id: gamecon.c,v 1.2
1 2002/01/22 20:27:27
vojtech Exp $
* $Id: gamecon.c,v 1.2
2 2002/07/01 15:42:25
vojtech Exp $
*
* Copyright (c) 1999-2001 Vojtech Pavlik
*
...
...
@@ -398,8 +398,8 @@ static void gc_timer(unsigned long private)
case
GC_PSX_RUMBLE
:
input_report_key
(
dev
+
i
,
BTN_THUMB
,
~
data
[
0
]
&
0x04
);
input_report_key
(
dev
+
i
,
BTN_THUMB
2
,
~
data
[
0
]
&
0x02
);
input_report_key
(
dev
+
i
,
BTN_THUMB
L
,
~
data
[
0
]
&
0x04
);
input_report_key
(
dev
+
i
,
BTN_THUMB
R
,
~
data
[
0
]
&
0x02
);
case
GC_PSX_NEGCON
:
case
GC_PSX_ANALOG
:
...
...
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