react-joystick-component

Tiny, multitouch, component driven joysticks in react

MIT License

Downloads
13.6K
Stars
87
Committers
7

Bot releases are hidden (Show)

react-joystick-component - Fix y direction value

Published by elmarti almost 6 years ago

Previously, Y was returned as a positive value when pointing the joystick into the negative area, due to using the absolute number. We now use the additive inverse value.

Issue: #16
PR: #18

react-joystick-component - Add "disabled" prop

Published by elmarti about 6 years ago

It is now possible to prevent usage of the joystick using the disabled prop. This doesn't add any styles to the joystick, but adds 2 classes - joystick-disabled and joystick-base-disabled.

react-joystick-component - Add keywords to package.json

Published by elmarti about 6 years ago

No additional functionality or code changes, simply updated the package meta data to make it easier to find.

react-joystick-component - Add touch support

Published by elmarti about 6 years ago

Component is now usable on both touch and hybrid devices.

react-joystick-component - Lock stick down

Published by elmarti about 6 years ago

In order to prevent the stick getting lost and to allow smoother usage, 2 things have happened

  • the dragmove event handlers are bound to the document, rather than the stick, this makes for smooth usage and the ability to control it after the cursor has left the joystick base
  • the joystick x,y coordinates are limited to half the size of the joystick, meaning it is bound within it
react-joystick-component - First release

Published by elmarti about 6 years ago

The first usable release of react-joystick-component.