Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
ab0c3443
K
Kernel
项目概览
openeuler
/
Kernel
大约 1 年 前同步成功
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ab0c3443
编写于
5月 29, 2005
作者:
D
Dmitry Torokhov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Input: whitespace fixes in driver/input/joystick
Signed-off-by:
N
Dmitry Torokhov
<
dtor@mail.ru
>
上级
de1b963a
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
23 addition
and
23 deletion
+23
-23
drivers/input/joystick/a3d.c
drivers/input/joystick/a3d.c
+1
-1
drivers/input/joystick/adi.c
drivers/input/joystick/adi.c
+2
-2
drivers/input/joystick/gamecon.c
drivers/input/joystick/gamecon.c
+5
-5
drivers/input/joystick/gf2k.c
drivers/input/joystick/gf2k.c
+1
-1
drivers/input/joystick/grip_mp.c
drivers/input/joystick/grip_mp.c
+1
-1
drivers/input/joystick/spaceball.c
drivers/input/joystick/spaceball.c
+2
-2
drivers/input/joystick/spaceorb.c
drivers/input/joystick/spaceorb.c
+1
-1
drivers/input/joystick/tmdc.c
drivers/input/joystick/tmdc.c
+1
-1
drivers/input/joystick/turbografx.c
drivers/input/joystick/turbografx.c
+9
-9
未找到文件。
drivers/input/joystick/a3d.c
浏览文件 @
ab0c3443
...
...
@@ -185,7 +185,7 @@ static void a3d_poll(struct gameport *gameport)
a3d
->
reads
++
;
if
(
a3d_read_packet
(
a3d
->
gameport
,
a3d
->
length
,
data
)
!=
a3d
->
length
||
data
[
0
]
!=
a3d
->
mode
||
a3d_csum
(
data
,
a3d
->
length
))
a3d
->
bads
++
;
a3d
->
bads
++
;
else
a3d_read
(
a3d
,
data
);
}
...
...
drivers/input/joystick/adi.c
浏览文件 @
ab0c3443
...
...
@@ -82,7 +82,7 @@ static char adi_cm2_abs[] = { ABS_X, ABS_Y, ABS_Z, ABS_RX, ABS_RY, ABS_RZ };
static
char
adi_wmf_abs
[]
=
{
ABS_WHEEL
,
ABS_GAS
,
ABS_BRAKE
,
ABS_HAT0X
,
ABS_HAT0Y
,
ABS_HAT1X
,
ABS_HAT1Y
,
ABS_HAT2X
,
ABS_HAT2Y
};
static
short
adi_wmgpe_key
[]
=
{
BTN_A
,
BTN_B
,
BTN_C
,
BTN_X
,
BTN_Y
,
BTN_Z
,
BTN_TL
,
BTN_TR
,
BTN_START
,
BTN_MODE
,
BTN_SELECT
};
static
short
adi_wmi_key
[]
=
{
BTN_TRIGGER
,
BTN_TOP
,
BTN_THUMB
,
BTN_TOP2
,
BTN_BASE
,
BTN_BASE2
,
BTN_BASE3
,
BTN_BASE4
,
BTN_EXTRA
};
static
short
adi_wmi_key
[]
=
{
BTN_TRIGGER
,
BTN_TOP
,
BTN_THUMB
,
BTN_TOP2
,
BTN_BASE
,
BTN_BASE2
,
BTN_BASE3
,
BTN_BASE4
,
BTN_EXTRA
};
static
short
adi_wmed3d_key
[]
=
{
BTN_TRIGGER
,
BTN_THUMB
,
BTN_THUMB2
,
BTN_TOP
,
BTN_TOP2
,
BTN_BASE
,
BTN_BASE2
};
static
short
adi_cm2_key
[]
=
{
BTN_1
,
BTN_2
,
BTN_3
,
BTN_4
,
BTN_5
,
BTN_6
,
BTN_7
,
BTN_8
};
...
...
@@ -183,7 +183,7 @@ static void adi_move_bits(struct adi_port *port, int length)
int
i
;
struct
adi
*
adi
=
port
->
adi
;
adi
[
0
].
idx
=
adi
[
1
].
idx
=
0
;
adi
[
0
].
idx
=
adi
[
1
].
idx
=
0
;
if
(
adi
[
0
].
ret
<=
0
||
adi
[
1
].
ret
<=
0
)
return
;
if
(
adi
[
0
].
data
[
0
]
&
0x20
||
~
adi
[
1
].
data
[
0
]
&
0x20
)
return
;
...
...
drivers/input/joystick/gamecon.c
浏览文件 @
ab0c3443
/*
* NES, SNES, N64, MultiSystem, PSX gamepad driver for Linux
*
* Copyright (c) 1999-2004
Vojtech Pavlik <vojtech@suse.cz>
* Copyright (c) 2004
Peter Nelson <rufus-kernel@hackish.org>
* Copyright (c) 1999-2004 Vojtech Pavlik <vojtech@suse.cz>
* Copyright (c) 2004 Peter Nelson <rufus-kernel@hackish.org>
*
* Based on the work of:
*
Andree Borrmann John Dahlstrom
*
David Kuder Nathan Hand
* Andree Borrmann John Dahlstrom
* David Kuder Nathan Hand
*/
/*
...
...
@@ -433,7 +433,7 @@ static void gc_timer(unsigned long private)
gc_psx_read_packet
(
gc
,
data_psx
,
data
);
for
(
i
=
0
;
i
<
5
;
i
++
)
{
switch
(
data
[
i
])
{
switch
(
data
[
i
])
{
case
GC_PSX_RUMBLE
:
...
...
drivers/input/joystick/gf2k.c
浏览文件 @
ab0c3443
...
...
@@ -329,7 +329,7 @@ static int gf2k_connect(struct gameport *gameport, struct gameport_driver *drv)
for
(
i
=
0
;
i
<
gf2k_axes
[
gf2k
->
id
];
i
++
)
{
gf2k
->
dev
.
absmax
[
gf2k_abs
[
i
]]
=
(
i
<
2
)
?
gf2k
->
dev
.
abs
[
gf2k_abs
[
i
]]
*
2
-
32
:
gf2k
->
dev
.
abs
[
gf2k_abs
[
0
]]
+
gf2k
->
dev
.
abs
[
gf2k_abs
[
1
]]
-
32
;
gf2k
->
dev
.
abs
[
gf2k_abs
[
0
]]
+
gf2k
->
dev
.
abs
[
gf2k_abs
[
1
]]
-
32
;
gf2k
->
dev
.
absmin
[
gf2k_abs
[
i
]]
=
32
;
gf2k
->
dev
.
absfuzz
[
gf2k_abs
[
i
]]
=
8
;
gf2k
->
dev
.
absflat
[
gf2k_abs
[
i
]]
=
(
i
<
2
)
?
24
:
0
;
...
...
drivers/input/joystick/grip_mp.c
浏览文件 @
ab0c3443
...
...
@@ -171,7 +171,7 @@ static int mp_io(struct gameport* gameport, int sendflags, int sendcode, u32 *pa
*
packet
=
0
;
raw_data
=
gameport_read
(
gameport
);
if
(
raw_data
&
1
)
return
IO_RETRY
;
return
IO_RETRY
;
for
(
i
=
0
;
i
<
64
;
i
++
)
{
raw_data
=
gameport_read
(
gameport
);
...
...
drivers/input/joystick/spaceball.c
浏览文件 @
ab0c3443
...
...
@@ -4,8 +4,8 @@
* Copyright (c) 1999-2001 Vojtech Pavlik
*
* Based on the work of:
*
David Thompson
*
Joseph Krahn
* David Thompson
* Joseph Krahn
*/
/*
...
...
drivers/input/joystick/spaceorb.c
浏览文件 @
ab0c3443
...
...
@@ -4,7 +4,7 @@
* Copyright (c) 1999-2001 Vojtech Pavlik
*
* Based on the work of:
*
David Thompson
* David Thompson
*/
/*
...
...
drivers/input/joystick/tmdc.c
浏览文件 @
ab0c3443
...
...
@@ -79,7 +79,7 @@ static short tmdc_btn_pad[TMDC_BTN] =
{
BTN_A
,
BTN_B
,
BTN_C
,
BTN_X
,
BTN_Y
,
BTN_Z
,
BTN_START
,
BTN_SELECT
,
BTN_TL
,
BTN_TR
};
static
short
tmdc_btn_joy
[
TMDC_BTN
]
=
{
BTN_TRIGGER
,
BTN_THUMB
,
BTN_TOP
,
BTN_TOP2
,
BTN_BASE
,
BTN_BASE2
,
BTN_THUMB2
,
BTN_PINKIE
,
BTN_BASE3
,
BTN_BASE4
,
BTN_A
,
BTN_B
,
BTN_C
,
BTN_X
,
BTN_Y
,
BTN_Z
};
BTN_BASE3
,
BTN_BASE4
,
BTN_A
,
BTN_B
,
BTN_C
,
BTN_X
,
BTN_Y
,
BTN_Z
};
static
short
tmdc_btn_fm
[
TMDC_BTN
]
=
{
BTN_TRIGGER
,
BTN_C
,
BTN_B
,
BTN_A
,
BTN_THUMB
,
BTN_X
,
BTN_Y
,
BTN_Z
,
BTN_TOP
,
BTN_TOP2
};
static
short
tmdc_btn_at
[
TMDC_BTN
]
=
...
...
drivers/input/joystick/turbografx.c
浏览文件 @
ab0c3443
...
...
@@ -99,7 +99,7 @@ static void tgfx_timer(unsigned long private)
for
(
i
=
0
;
i
<
7
;
i
++
)
if
(
tgfx
->
sticks
&
(
1
<<
i
))
{
dev
=
tgfx
->
dev
+
i
;
dev
=
tgfx
->
dev
+
i
;
parport_write_data
(
tgfx
->
pd
->
port
,
~
(
1
<<
i
));
data1
=
parport_read_status
(
tgfx
->
pd
->
port
)
^
0x7f
;
...
...
@@ -122,22 +122,22 @@ static void tgfx_timer(unsigned long private)
static
int
tgfx_open
(
struct
input_dev
*
dev
)
{
struct
tgfx
*
tgfx
=
dev
->
private
;
if
(
!
tgfx
->
used
++
)
{
struct
tgfx
*
tgfx
=
dev
->
private
;
if
(
!
tgfx
->
used
++
)
{
parport_claim
(
tgfx
->
pd
);
parport_write_control
(
tgfx
->
pd
->
port
,
0x04
);
mod_timer
(
&
tgfx
->
timer
,
jiffies
+
TGFX_REFRESH_TIME
);
mod_timer
(
&
tgfx
->
timer
,
jiffies
+
TGFX_REFRESH_TIME
);
}
return
0
;
return
0
;
}
static
void
tgfx_close
(
struct
input_dev
*
dev
)
{
struct
tgfx
*
tgfx
=
dev
->
private
;
if
(
!--
tgfx
->
used
)
{
del_timer
(
&
tgfx
->
timer
);
struct
tgfx
*
tgfx
=
dev
->
private
;
if
(
!--
tgfx
->
used
)
{
del_timer
(
&
tgfx
->
timer
);
parport_write_control
(
tgfx
->
pd
->
port
,
0x00
);
parport_release
(
tgfx
->
pd
);
parport_release
(
tgfx
->
pd
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录