Time between button press and release using gcapi_Write func

Titan One general support. Questions, firmware update, feature request.

Time between button press and release using gcapi_Write func

Postby ogawa » Wed Apr 17, 2019 10:26 am

I'm trying to use Nintendo Switch with Titan One device through gcdapi.dll.

I'm trying to press and release left button with gcapi_Write function.
I set the value of the left button to 100 and then to 0 soon, it was recognized as long press of left button or nothing.
Set the value of the left button to 0 after 10 ms, it dose not work.
Set the value of the left button to 0 after 40 ms, it works well.

Do I have to wait 40 ms between press and release?
Or is there any other good way?
User avatar
ogawa
Sergeant
Sergeant
 
Posts: 6
Joined: Wed Apr 10, 2019 1:20 am

Re: Time between button press and release using gcapi_Write

Postby UK_Wildcats » Wed Apr 17, 2019 3:53 pm

The main loop run at 10mS intervals; therefore, it is recommended to use wait values larger than 10 mS to allow for proper execution. For consoles that running at 60 hz, the frame rate is 17mS. For these reasons, it is recommended to use a wait time greater than 20mS. Typically, 40mS is the best choice as a minimum.
User avatar
UK_Wildcats
Brigadier General
Brigadier General
 
Posts: 2243
Joined: Thu Jan 08, 2015 6:53 pm

Re: Time between button press and release using gcapi_Write

Postby ogawa » Thu Apr 18, 2019 12:07 am

Thank you for telling me about the wait time.
I have understood why wait time is necessary.

Thank you.
User avatar
ogawa
Sergeant
Sergeant
 
Posts: 6
Joined: Wed Apr 10, 2019 1:20 am


Return to Titan One Device

Who is online

Users browsing this forum: UrASimp and 131 guests