MOST Controller

The best solution for mobile input controllers and supporting keyboard keys all possible variations of Custom buttons and joysticks with multiple input source support

Multiply Template on real device

_____ * How to import and use the MOST Spawn System? * _____ 1- Create an empty object on your UI Canvas (will become the controller... Button, Joystick.....)

2- Select this object and tap Add Component

3- select Most_Control.cs

4- Modify the controller properties as they fit your vision and done... you have an input controller

  • The Controller system is only one .cs file contains all UI Input controllers (all types of Buttons + all types of joysticks + swipes)

  • You will find examples for most common controller variations and how to use it

  • The target UI Sprite object can be used in multiple controllers like use it to get inputs from screen (one controller) and keyboard (another controller), see examples below

_____ * Features * _____

  • Using Most_Controller you can create all possible variations of Custom buttons and joysticks

  • Support Multiple input sources in one controller

the joystick controlled by touch and axis buttons from keyboard and button controlled by touch and X button (multi input source)
  • Support multitouch in the MOST efficient way

  • Support all mobile devices and all custom keyboard inputs

  • Support Swipes, Hover triggers, custom zones

  • complete debug system and all state output detections

_____ * Outputs * _____

  • All output can be accessed using .cs calls or event systems

  • If Output refers to a value the event system will send this value to the attached functions, for example: On Direction change event will send the new direction value

  • You will find all output values next to the Event brackets

Button (all types) Event System
Static joystick event system
Dynamic JoyStick Event system

what is Raw output? the distance in vector between the joystick knob center position and the max position that Knob can reach

Raw output used for? or examples?

Note: when Knob is close to the center the throw aim sprite disappears (this is an optional setting on controller "Min Activation Range")

__________ * API * __________


// Output Functions
// main behavior enable and disable controller
Most_Controller.EnableState(bool Enable);

// return the current direction of this controller in Vector2
Most_Controller.GetAxis(); return Vector2;

// return the current joystick Knob magnitude scale in float scaled (0,1)
Most_Controller.GetMagnitude(); return float;

// return the current joystick Knob position scale in float scaled (0,1)
Most_Controller.GetRawValue(); return Vector2;

// return the last detected swipe direction
Most_Controller.GetSwipeDirection(); return Vector2;

// if you want to disable the controller for an amount of time, like a cooldown or buffer
// time input is Optional, if null, the controller will use the buffer property settings
// buffer settings are on controller behavior...
Most_Controller.DisableForATime([Optional] float time);

Last updated