{"repo":"yoannmoinet/nipplejs","free":true,"listed":false,"github":"https://github.com/yoannmoinet/nipplejs","clone":"git clone https://github.com/yoannmoinet/nipplejs.git","description":":video_game: A virtual joystick for touch capable interfaces.","language":"TypeScript","stars":1938,"topics":["joystick","frontend","dom","vanilla-javascript","dependency-free","gamedev"],"license":"MIT","category":"game-templates","readme_excerpt":"A vanilla virtual joystick for touch capable interfaces Documentation · Interactive Demos · Migration Guide Table Of Contents - Install - Demo - Usage - Options - options.zone - options.color - options.size - options.threshold - options.fadeTime - options.multitouch - options.maxNumberOfJoysticks - options.dataOnly - options.position - options.mode - options.restJoystick - options.restOpacity - options.catchDistance - options.lockX - options.lockY - options.shape - options.dynamicPage - options.follow - API - NippleJS instance (manager) - Logging - nipple instance (joystick) - joystick.on , joystick.off - joystick.ui - joystick.destroy() - joystick.setPosition(cb, { x, y }) - joystick.identifier - [ joystick.trigger(type [, data]) ](#joysticktriggertype-data) - joystick.position - joystick.frontPosition - Events - manager only - manager and joysticks - Contributing Install ---- Demo Check out the interactive demos on the documentation website. ---- Usage Import it the way you want into your project : :warning: NB :warning: Your joystick's container must have a CSS position value set ( relative , absolute , or fixed ). Without it, the joystick will not be positioned correctly. The library warns in the console if position: static is detected. ---- Options You can configure your joystick in different ways : All options are optional :sunglasses:. options.zone Defaults to 'body' The dom element in which all your joysticks will be injected. This zone also serve as the mouse/touch e","default_branch":null,"files":null,"tree":[],"storefront":"/r/yoannmoinet","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yoannmoinet/nipplejs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}