Page 1 of 1

Time between button press and release using gcapi_Write func

PostPosted: Wed Apr 17, 2019 10:26 am
by ogawa
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?

Re: Time between button press and release using gcapi_Write

PostPosted: Wed Apr 17, 2019 3:53 pm
by UK_Wildcats
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.

Re: Time between button press and release using gcapi_Write

PostPosted: Thu Apr 18, 2019 12:07 am
by ogawa
Thank you for telling me about the wait time.
I have understood why wait time is necessary.

Thank you.