Need help with programming

touru_04

Member
OP
Newcomer
Joined
Apr 16, 2022
Messages
18
Trophies
0
Age
24
Location
who knows
XP
108
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

General chit-chat
Help Users
  • No one is chatting at the moment.
  • BigOnYa @ BigOnYa:
    I kept thinking jaws was gonna come up and attack
  • K3Nv2 @ K3Nv2:
    Jaws is on a diet
  • K3Nv2 @ K3Nv2:
    Damn power went out
  • BigOnYa @ BigOnYa:
    Ok xdqwerty, your little bro prob tripped On the cord and unplugged you
  • K3Nv2 @ K3Nv2:
    Ya I'm afraid of the dark hug me
  • BigOnYa @ BigOnYa:
    Grab and hold close your AncientBoi doll.
  • K3Nv2 @ K3Nv2:
    Damn didn't charge my external battery either
  • BigOnYa @ BigOnYa:
    Take the batteries out of your SuperStabber3000... Or is it gas powered?
  • K3Nv2 @ K3Nv2:
    I stole batteries from your black mamba
    +1
  • K3Nv2 @ K3Nv2:
    My frozen food better hold up for an hour I know that
  • BigOnYa @ BigOnYa:
    Or else gonna be a big lunch and dinner tomorrow.
  • BigOnYa @ BigOnYa:
    Did you pay your power bill? Or give all yo money to my wife, again.
  • K3Nv2 @ K3Nv2:
    Oh good the estimated time is the same exact time they just said
    +1
  • BigOnYa @ BigOnYa:
    Load up your pc and monitor, and head to a McDonalds dining room, they have free WiFi
  • K3Nv2 @ K3Nv2:
    Sir please watch your porn in the bathroom
    +2
  • BigOnYa @ BigOnYa:
    No sir we can not sell you anymore apple pies, after what you did with the last one.
  • K3Nv2 @ K3Nv2:
    We ran out
  • HiradeGirl @ HiradeGirl:
    for your life
    +1
  • K3Nv2 @ K3Nv2:
    My life has no value my fat ass is staying right here
  • K3Nv2 @ K3Nv2:
    Nearly 4 hours without power :(
  • Veho @ Veho:
    SO POWERLESS
  • K3Nv2 @ K3Nv2:
    Tell Kanye I need power
    K3Nv2 @ K3Nv2: Tell Kanye I need power