mirror of https://github.com/red-prig/fpPS4.git
This commit is contained in:
parent
e71e519d2f
commit
be95559fc6
|
@ -80,24 +80,26 @@ type
|
||||||
|
|
||||||
p_pad_device_info=^t_pad_device_info;
|
p_pad_device_info=^t_pad_device_info;
|
||||||
t_pad_device_info=packed record //0x40
|
t_pad_device_info=packed record //0x40
|
||||||
conn_type :Byte;
|
connect_type :Byte;
|
||||||
pad1 :array[0..2] of Byte;
|
pad1 :array[0..2] of Byte;
|
||||||
device_id :Integer;
|
device_id :Integer;
|
||||||
unknow1 :QWORD;
|
bluetooth_addr:QWORD;
|
||||||
hid_vid :Word;
|
hid_vid :Word;
|
||||||
hid_did :Word;
|
hid_did :Word;
|
||||||
unknow2 :array[0..11] of Byte;
|
f_0x14 :QWORD;
|
||||||
dualshock_i:Byte;
|
f_0x1c :Word;
|
||||||
pad2 :array[0..2] of Byte;
|
f_0x1e :Word;
|
||||||
capability1:Integer;
|
dualshock_id :Byte;
|
||||||
dev_classid:Byte;
|
pad2 :array[0..2] of Byte;
|
||||||
unknow3 :Byte;
|
capability1 :Integer;
|
||||||
capability2:Byte;
|
dev_class_id :Byte;
|
||||||
unknow4 :Byte;
|
motion_scale :Byte;
|
||||||
ext_data :t_pad_ext_info;
|
capability2 :Byte;
|
||||||
touchpad :t_touch_pad_info;
|
unknow4 :Byte;
|
||||||
stick_info :t_pad_stick_info;
|
ext_data :t_pad_ext_info;
|
||||||
unknow5 :Word;
|
touchpad :t_touch_pad_info;
|
||||||
|
stick_info :t_pad_stick_info;
|
||||||
|
unknow5 :Word;
|
||||||
end;
|
end;
|
||||||
{$IF sizeof(t_pad_device_info)<>64}{$STOP sizeof(t_pad_device_info)<>64}{$ENDIF}
|
{$IF sizeof(t_pad_device_info)<>64}{$STOP sizeof(t_pad_device_info)<>64}{$ENDIF}
|
||||||
|
|
||||||
|
@ -176,12 +178,12 @@ const
|
||||||
type
|
type
|
||||||
p_motion_calib_state=^t_motion_calib_state;
|
p_motion_calib_state=^t_motion_calib_state;
|
||||||
t_motion_calib_state=packed record
|
t_motion_calib_state=packed record
|
||||||
field_0x0 :Word;
|
field_0x00:Word;
|
||||||
field_0x2 :Integer;
|
field_0x02:Integer;
|
||||||
field_0x6 :Word;
|
field_0x06:Word;
|
||||||
field_0x8 :Integer;
|
field_0x08:Integer;
|
||||||
field_0xc :Word;
|
field_0x0c:Word;
|
||||||
field_0xe :Integer;
|
field_0x0e:Integer;
|
||||||
field_0x12:Word;
|
field_0x12:Word;
|
||||||
field_0x14:Word;
|
field_0x14:Word;
|
||||||
field_0x16:Integer;
|
field_0x16:Integer;
|
||||||
|
@ -241,16 +243,18 @@ begin
|
||||||
|
|
||||||
u.pad_device_info:=Default(t_pad_device_info);
|
u.pad_device_info:=Default(t_pad_device_info);
|
||||||
|
|
||||||
u.pad_device_info.conn_type :=0;
|
u.pad_device_info.connect_type :=0;
|
||||||
u.pad_device_info.device_id :=$60300;
|
u.pad_device_info.device_id :=$60300;
|
||||||
u.pad_device_info.hid_vid :=$54c; //Vendor ID = 054C
|
u.pad_device_info.hid_vid :=$54c; // Vendor ID = 054C
|
||||||
u.pad_device_info.hid_did :=$5c4; //Device ID = 05C4 (DualShock 4 [CUH-ZCT1x])
|
u.pad_device_info.hid_did :=$5c4; // Device ID = 05C4 (DualShock 4 [CUH-ZCT1x])
|
||||||
u.pad_device_info.dualshock_i:=4;
|
u.pad_device_info.f_0x1c :=$2;
|
||||||
u.pad_device_info.capability1:=$37;
|
u.pad_device_info.f_0x1e :=$b;
|
||||||
u.pad_device_info.dev_classid:=0;
|
u.pad_device_info.dualshock_id :=4;
|
||||||
u.pad_device_info.touchpad.pixelDensity:=$1186; // (4.486)
|
u.pad_device_info.capability1 :=$37;
|
||||||
u.pad_device_info.touchpad.x:=$780; //1920
|
u.pad_device_info.dev_class_id :=0;
|
||||||
u.pad_device_info.touchpad.y:=$3ae; //942
|
u.pad_device_info.touchpad.pixelDensity :=$1186; // (4.486)
|
||||||
|
u.pad_device_info.touchpad.x :=$780; // 1920
|
||||||
|
u.pad_device_info.touchpad.y :=$3ae; // 942
|
||||||
u.pad_device_info.stick_info.deadZoneLeft :=$d;
|
u.pad_device_info.stick_info.deadZoneLeft :=$d;
|
||||||
u.pad_device_info.stick_info.deadZoneRight:=$d;
|
u.pad_device_info.stick_info.deadZoneRight:=$d;
|
||||||
|
|
||||||
|
@ -318,8 +322,6 @@ begin
|
||||||
|
|
||||||
//num * 0xa8
|
//num * 0xa8
|
||||||
|
|
||||||
writeln;
|
|
||||||
|
|
||||||
//num
|
//num
|
||||||
td^.td_retval[0]:=1;
|
td^.td_retval[0]:=1;
|
||||||
end;
|
end;
|
||||||
|
|
Loading…
Reference in New Issue