登录:     


Forum: General Discussion

Topic: Quick question Controller button double click

由于该帖子已年深日久,可能包含陈旧过时或描述错误的信息。

can i double click a controller button to do lets say a clone deck??????
 

发表时间 Wed 03 Feb 16 @ 5:16 am
dont think this will work, please try to use shift & controllerbutton to send a additional action
 

yes you can, here's an example, the double press command can be a instant action, single press suits non timing critical commands
Quote :

Execute different action on click and different on double-click (for controllers)
var 'double' ? set 'double' 0 & repeat_stop 'myrep' & device_side 'left' ? deck left clone_deck right : deck right clone_deck left : set 'double' 1 & repeat_start 'myrep' 400ms 1 & load & set 'double' 0

The script uses a timer and waits for 400ms to see if a second click (push) comes.
If not it loads the track on deck, if Yes, it clones the deck to the opposite side.

Script added from Djdad
 



(陈旧帖子或论坛版块会自动关闭)