HFScode / zspin

zspin is an arcade frontend, working on windows, linux, and OSX.
http://forum.hfsplay.fr/zspin-f113/
Other
16 stars 11 forks source link

Add input service #6

Closed godric7 closed 9 years ago

godric7 commented 9 years ago

Input service $watch the object exposed by the settings object and $emit known input events on the $rootScope

So that in a controller we can do

$scope.$watch('input:back', $scope.prev);
$scope.$watch('input:enter', $scope.enterMenu);
etc...