Need help with programming

  • Thread starter Thread starter touru_04
  • Start date Start date
  • Views Views 429
  • Replies Replies 0

touru_04

Member
Newcomer
Joined
Apr 16, 2022
Messages
18
Reaction score
5
Trophies
0
Age
26
Location
who knows
XP
128
Country
Antarctica
Hi all,
I'm now modifying ds4vita, I want L2 to:
send R1+triangle, sleep/wait 2 seconds, send R1+square
So far I haven't been able to get it to work correctly.

1)
How to tell it to sleep/wait 2 seconds?

2)
The following lines will send triangle only, how to fix it?
key1 = SCE_CTRL_R1;
ksceCtrlSetButtonEmulation(0, 0, key1, key1, 1000000);
key1 = SCE_CTRL_TRIANGLE;
ksceCtrlSetButtonEmulation(0, 0, key1, key1, 1000000);

3)
According to vitasdk, uiMake in ksceCtrlSetButtonEmulation() is measured in sampling counts.
How to convert second to sampling count?
https://docs.vitasdk.org/group__SceCtrlKernel.html#ga228c34880869b12d0f256fb49782471d

Thanks in advance.
 

Site & Scene News

Popular threads in this forum