{"id":19015368,"url":"https://github.com/hansolo/touchjoystick","last_synced_at":"2025-04-23T01:47:46.087Z","repository":{"id":145345093,"uuid":"268705436","full_name":"HanSolo/touchjoystick","owner":"HanSolo","description":"A JavaFX touch joystick control that was inspired by the UI of SpaceX Crew Dragon","archived":false,"fork":false,"pushed_at":"2020-06-02T05:17:00.000Z","size":425,"stargazers_count":10,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T07:05:36.577Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HanSolo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-02T05:03:01.000Z","updated_at":"2023-11-29T10:08:19.000Z","dependencies_parsed_at":"2023-07-03T10:05:53.064Z","dependency_job_id":null,"html_url":"https://github.com/HanSolo/touchjoystick","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HanSolo%2Ftouchjoystick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HanSolo%2Ftouchjoystick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HanSolo%2Ftouchjoystick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HanSolo%2Ftouchjoystick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HanSolo","download_url":"https://codeload.github.com/HanSolo/touchjoystick/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249318969,"owners_count":21250444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T19:37:00.813Z","updated_at":"2025-04-17T05:31:20.164Z","avatar_url":"https://github.com/HanSolo.png","language":"Java","funding_links":["https://paypal.me/hans0l0"],"categories":[],"sub_categories":[],"readme":"## Touch Joystick\nThe touch joystick control was inspired by the UI of SpaceX Crew Dragon spaceship.\nThe control has a touch point that can be dragged around. You can add listeners to several properties like\n- value (0.0 - 1.0)\n- angle (0.0 - 360)\n- x (0.0 - 1.0)\n- y (0.0 - 1.0)\n\nIn addition you can lock axis to restrict movement in only on direction.\n```java\njoystick.setLockState(LockState.Y_LOCKED))\n```\nWill set the movement locked to the y-axis.\nAround the drag control you will find 8 buttons that can be used to change\nthe value and direction by a given step size (0.001 - 10.0), which is in pixels.\nAnd you can also set it to sticky mode which means the touch point will NOT automatically\nmove back to center (which is the default behavior).\nOne can also set the inactive- and activeColor for the control.\nThe more you move the touch point in one direction the more of the chevrons will show \nup on the opposite side of the touch point. This gives an indication on how\nfar you dragged the point. I've put this indicator on the opposite side because if\nyou drag the point with the finger your hand might block the view on the control.\n\nYou can also start a little demo to play around with it by executing the following command\non the command line (make sure you are on Java 11):\n```java\ngradle Demo\n```\n\nDonations are welcome at [Paypal](https://paypal.me/hans0l0)\n\n## Overview\n![Overview](https://raw.githubusercontent.com/HanSolo/touchjoystick/master/TouchJoystick.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansolo%2Ftouchjoystick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhansolo%2Ftouchjoystick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansolo%2Ftouchjoystick/lists"}