Skip to content

I designed this controller package for my blueetooth controller(VR_Lioneye). I can not find any project with this controller. I convert my playstation 2 controller codes to this. I hope it helps!

malisasmaz/Bluetooth_Controller_VR_Lioneye

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Bluetooth Controller VR_Lioneye

I designed this controller package for my blueetooth controller(VR_Lioneye). I can not find any project with this controller. I convert my playstation 2 controller codes to this. I hope it helps!

Picture of my controller

alt text


Here is the guide to help user's who are trying to do figure out how to integrate this VR Controller Input System with Unity.
Basically this controller is having 4 modes;

  • @ + A or (A) : Mouse Mode
  • @ + B or (D) : Not working for me
  • @ + X or (B) : Horiozontal Bluetooth controller mode (this is the mode where the scripts works perfectly fine.)
  • @ + Y or (C) : Vertical Bluetooth controller mode

After understanding the mode, let's move on to unity and understand Unity Input System,

Hold on we still need to understand all the joystick button #numbers.

In mostly VR Controller, the mapping is as below.

  • joystick button 3 - Y or (C)
  • joystick button 0 - A or (A)
  • joystick button 2 - X or (B)
  • joystick button 1 - B or (D)
  • joystick button 10 - Hit (button located at side of controller)
  • joystick button 11 - @ button of controller.
  • Horizontal - you may have one already created and if not will guide you below.
  • Vertical - you may have one already created and if not will guide you below.

Now before starting your project you need to create all the axis buttons in Unity Input System.

  • For Horizontal and vertical button you need to create a button with Type as "Joystick Axis" and in Axis Y for Horizontal and X for Vertical Axis.

  • For other button just name it properly and in Alt Positive Button replace it with appropriate mapping buttons from list above.

About

I designed this controller package for my blueetooth controller(VR_Lioneye). I can not find any project with this controller. I convert my playstation 2 controller codes to this. I hope it helps!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published