Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rohanrhu/virtual-joystick
Virtual Joystick plugin for Godot Engine
https://github.com/rohanrhu/virtual-joystick
godot godot-engine godot-plugin joystick virtual-joystick
Last synced: 2 months ago
JSON representation
Virtual Joystick plugin for Godot Engine
- Host: GitHub
- URL: https://github.com/rohanrhu/virtual-joystick
- Owner: rohanrhu
- License: mit
- Created: 2020-08-29T19:35:22.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-22T00:12:14.000Z (over 2 years ago)
- Last Synced: 2024-05-02T02:59:54.056Z (8 months ago)
- Topics: godot, godot-engine, godot-plugin, joystick, virtual-joystick
- Language: GDScript
- Homepage: https://godotengine.org/asset-library/asset/707
- Size: 46.9 KB
- Stars: 13
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# virtual-joystick
Virtual joystick plugin for Godot Engine.![Godot Virtual Joystick](media/ss.png)
## Installation
### GIT
You can install the plugin with GIT.```bash
cd /path/to/project
mkdir -p addons
cd addons
git clone https://github.com/rohanrhu/virtual-joystick
```## Usage
### Add a `Virtualjoystick` node.
### Add a `CollisionShape2D` and set a `CircleShape2D` to that.
### Set container and button textures
![Texture Settings](media/texture-settings.png)## Events
### `controlling`
Fires during user control.### `trimming`
Fires while button is trimming to container's border.### `released`
Fires when user released the joystick.## Properties
### `container_texture: Texture`
### `button_texture: Texture`
### `is_mouseover: bool`
### `is_dragging: bool`
### `is_trimming: bool`
### `angle: float`
### `velocity: Vector2`## Notices
* While you are testing it on mouse, you may want to enable `Project Settings > General > Input Devices > Pointing > Emulate Touch From Mouse` setting.## License
MIT