Skip to content

A virtual thumbstick (or joystick) in Swift for the iPhone/iPad.

Notifications You must be signed in to change notification settings

KhanKhuu/Thumbstick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Thumbstick

How to use it:

Use the x and y positions of the knob and its originalPosition (all in MyThumbstick.swift) to handle direction of the joystick.

Use the MyThumbstickDelegate protocol (defined in MyThumbstick.swift) to create any functions you want to delegate to ViewController.

Modify the design to fit your project. Thumbstick position on-screen can be changed just by moving knobView in ViewController. The circle outline should follow.

Use it however you want, just credit me and keep it libre. Enjoy!

About

A virtual thumbstick (or joystick) in Swift for the iPhone/iPad.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages