|
![](static/image/common/ico_lz.png)
楼主 |
发表于 2008-9-10 00:41:07
|
显示全部楼层
【29楼】 robinyuan
你先看看PSX手柄的协议吧!
现在常用的手柄有两种,一种是不带振动(Standard Digital Pad)的,另一种是带振动(Analogue Controller in Red Mode)的,在顶楼图片里的是第二种,这种手柄可以工作在两种模式,中间那红灯亮时工作在第二种模式(摇杆输出数字量),灭时工作在第一种模式(摇杆输出和方向键一样)!
The PSX Controller Data
Below are five tables that show the actual bytes sent by the controllers
Standard Digital Pad
BYTE CMND DATA
01 0x01 idle
02 0x42 0x41
03 idle 0x5A Bit0 Bit1 Bit2 Bit3 Bit4 Bit5 Bit6 Bit7
04 idle data SLCT STRT UP RGHT DOWN LEFT
05 idle data L2 R2 L1 R1 /\ O X |_|
All Buttons active low.
NegCon
BYTE CMND DATA
01 0x01 idle
02 0x42 0x23
03 idle 0x5A Bit0 Bit1 Bit2 Bit3 Bit4 Bit5 Bit6 Bit7
04 idle data STRT UP RGHT DOWN LEFT
05 idle data R1 A B
06 idle data Steering 0x00 = Right 0xFF = Left
07 idle data I Button 0x00 = Out 0xFF = In
08 idle data II Button 0x00 = Out 0xFF = In
09 idle data L1 Button 0x00 = Out 0xFF = In
All Buttons active low.
Analogue Controller in Red Mode
BYTE CMND DATA
01 0x01 idle
02 0x42 0x73
03 idle 0x5A Bit0 Bit1 Bit2 Bit3 Bit4 Bit5 Bit6 Bit7
04 idle data SLCT JOYR JOYL STRT UP RGHT DOWN LEFT
05 idle data L2 R2 L1 R1 /\ O X |_|
06 idle data Right Joy 0x00 = Left 0xFF = Right --->右摇杆的左右方向输出,少于0X80向左、大于0X80向右
07 idle data Right Joy 0x00 = Up 0xFF = Down --->右摇杆的上下方向输出
08 idle data Left Joy 0x00 = Left 0xFF = Right --->左摇杆的左右方向输出
09 idle data Left Joy 0x00 = Up 0xFF = Down --->左摇杆的上下方向输出
All Buttons active low.
Analogue Controller in Green Mode
BYTE CMND DATA
01 0x01 idle
02 0x42 0x53
03 idle 0x5A Bit0 Bit1 Bit2 Bit3 Bit4 Bit5 Bit6 Bit7
04 idle data STRT UP RGHT DOWN LEFT
05 idle data L2 L1 |_| /\ R1 O X R2
06 idle data Right Joy 0x00 = Left 0xFF = Right
07 idle data Right Joy 0x00 = Up 0xFF = Down
08 idle data Left Joy 0x00 = Left 0xFF = Right
09 idle data Left Joy 0x00 = Up 0xFF = Down
All Buttons active low.
PSX Mouse
BYTE CMND DATA
01 0x01 idle
02 0x42 0x12
03 idle 0x5A Bit0 Bit1 Bit2 Bit3 Bit4 Bit5 Bit6 Bit7
04 idle 0xFF
05 idle data L R
06 idle data Delta Vertical
07 idle data Delta Horizontal
All Buttons active low.
点击此处下载 ourdev_410308.pdf(文件大小:146K) (原文件名:PS手柄协议文档.pdf)
点击此处下载 ourdev_410309.mht(文件大小:252K) (原文件名:PlayStation手柄原理分析 SS专区 VGSKY_COM SSSS资讯SS技术SS游戏SS破解PMPAVCMP4SS攻略SS秘籍 - Powered by ChinaCMS_Net.mht) |
|