react-joystick-component

Tiny, multitouch, component driven joysticks in react

MIT License

Downloads
13.6K
Stars
87
Committers
7

Bot releases are visible (Hide)

react-joystick-component - 2.1.0

Published by github-actions[bot] almost 3 years ago

v2.1.0 (Fri, January 07, 2022)

## ✨ New Features
  - [`9016023`](https://github.com/elmarti/react-joystick-component/commit/9016023)  ensure control plane is circular -  ensure control plane is circular
react-joystick-component - 2.0.0

Published by github-actions[bot] almost 3 years ago

v2.0.0 (Fri, January 07, 2022)

## ✨ New Features
  - [`a5464f1`](https://github.com/elmarti/react-joystick-component/commit/a5464f1)  add semantic release gitmoji -  add semantic release gitmoji

This will automate releases and is pretty as all hell

## 💥 Breaking Changes
  - [`ce492c5`](https://github.com/elmarti/react-joystick-component/commit/ce492c5)  upgrade deps, move react/dom to peerDependencies -  upgrade deps, move react/dom to peerDependencies

Long time coming, had to reimplement the storybook library, seems to be working as before

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.