Time between button press and release using gcapi_Write func
3 posts
• Page 1 of 1
Time between button press and release using gcapi_Write func
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?
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?
-
ogawa - Sergeant
- Posts: 6
- Joined: Wed Apr 10, 2019 1:20 am
Re: Time between button press and release using gcapi_Write
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.
-
UK_Wildcats - Brigadier General
- Posts: 2243
- Joined: Thu Jan 08, 2015 6:53 pm
Re: Time between button press and release using gcapi_Write
Thank you for telling me about the wait time.
I have understood why wait time is necessary.
Thank you.
I have understood why wait time is necessary.
Thank you.
-
ogawa - Sergeant
- Posts: 6
- Joined: Wed Apr 10, 2019 1:20 am
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: vonnystaxx and 160 guests