Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
/* AzureaでRadialControllerを使うスクリプト */
var radialController = NativeExtensions.RadialController;
var viewEx = NativeExtensions.ViewEx;
radialController.rotationResolution = 5;
radialController.addTool("test", 0);
radialController.clearSystemTools();
radialController.addEventListener('click', function(){
viewEx.toggle();
});
radialController.addEventListener('doubleClick', function(){
var status = System.views.currentView.selectedItem.status;
if(status.favorited){
TwitterService.favorite.destroy(status.id);
}else{
TwitterService.favorite.create(status.id);
}
});
radialController.addEventListener('rotateLeft', function(){
viewEx.up();
});
radialController.addEventListener('rotateRight', function(){
viewEx.down();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment