Search Unity

OVRPlayerController

Discussion in 'AR/VR (XR) Discussion' started by conman56ace, Dec 26, 2014.

  1. conman56ace

    conman56ace

    Joined:
    Dec 26, 2014
    Posts:
    1
    I have built my scene and placed in a OVRPlayerController, but my amazon fire gamepad does nothing when I launch the app on the Gear VR. The controller works fine with the Oculus Store and all the content, just nothing inside my application.


    on a related note, i can't figure out how to pair my fire pad to my macbook pro. It doesnt show up in the bluetooth menu.
     
  2. Garlandicus

    Garlandicus

    Joined:
    Jan 4, 2015
    Posts:
    1
    You might need to re-map your input axes, as I don't think those are configured automatically.

    Go to Edit -> Project Settings -> Input, and make sure you've got the following inputs configured correctly:



    Not sure how to get your pad synced with your mbp though, sorry.
     
  3. ATMEthan

    ATMEthan

    Joined:
    Dec 27, 2012
    Posts:
    54

    Garlandicus, can you elaborate on the Gear VR Touchpad controls? The 2nd column is a bit confusing. So as I understand it my input manager should look something like this(Touchpad only). I'm messing around with different options for mouse 0 and mouse 1 but no luck yet.

    Mouse 0 / Button 1
    Name - Mouse 0
    Descriptive Name -
    Descriptive Negative Name -
    Negative Button -
    Positive Button -
    Alt Negative Button -
    Alt Positive Button -
    Gravity - 0
    Dead - 0
    Sensitivity - 1000
    Type - Key or Mouse Button
    Axis - Confused here there is no 0th or 1st axis
    Joy Num - Get Motion from all Joysticks

    Mouse 1 / Button 2
    Name - Mouse 1
    Descriptive Name -
    Descriptive Negative Name -
    Negative Button -
    Positive Button -
    Alt Negative Button -
    Alt Positive Button -
    Gravity - 0
    Dead - 0
    Sensitivity - 1000
    Type - Key or Mouse Button
    Axis - Confused here there is no 0th or 1st axis
    Joy Num - Get Motion from all Joysticks

    Mouse X
    Name - Mouse X
    Descriptive Name -
    Descriptive Negative Name -
    Negative Button -
    Positive Button -
    Alt Negative Button -
    Alt Positive Button -
    Gravity - 0
    Dead - 0
    Sensitivity - 0.1
    Type - Mouse Movement
    Axis - X Axis
    Joy Num - Get Motion from all Joysticks


    Mouse Y
    Name - Mouse Y
    Descriptive Name -
    Descriptive Negative Name -
    Negative Button -
    Positive Button -
    Alt Negative Button -
    Alt Positive Button -
    Gravity - 0
    Dead - 0
    Sensitivity - 0.1
    Type - Mouse Movement
    Axis - Y Axis
    Joy Num - Get Motion from all Joysticks
     
  4. davem250

    davem250

    Joined:
    May 28, 2013
    Posts:
    186
    @ATMEthan - what the second column actually says is that you CAN (Don't need to!) use both mouse 0 and / or joystick button 0 for the same thing! but in order to use joystick button 0 you simply need to write in the positive button = joystick button 0 ! and the type must always be "Key or Mouse Button" when using buttons either on joysticks or mouse or even keyboard :D The only times you'll ever need to change the Axis parameter is when you want to assign i.e. a controller which has analogue Sticks and you want the left stick to move the player and the right stick to rotate the player cam... Hope this clarifies at least a little :)

    So you want the Mouse 1 parameter to look like this :)

    Mouse 1
    Name - Mouse 1
    Descriptive Name -
    Descriptive Negative Name -
    Negative Button -
    Positive Button - mouse 1
    Alt Negative Button -
    Alt Positive Button -
    Gravity - 0
    Dead - 0
    Sensitivity - 1000
    Type - Key or Mouse Button
    Axis - Do not change this as it doesn't affect the mouse buttons anyway :) it only affect the movements of either Sticks or the mouse X and Y movement!!!
    Joy Num - Get Motion from all Joysticks

    EDIT! Oh yeah, i believe that you shouldn't play with the buttons Gravity or when it's dead, they should be (Gravity: 1000, Dead: 0.001) it is also (as far as i remember to have learned!) only when dealing with Axis' that you should play with "Gravity", "Dead and "Sensitivity" !!!
     
  5. ATMEthan

    ATMEthan

    Joined:
    Dec 27, 2012
    Posts:
    54
    Thank you!!!!!!! that is exactly what I needed to hear!!! My main problem was missing the positive button parameter.
     
  6. davem250

    davem250

    Joined:
    May 28, 2013
    Posts:
    186
    You're most welcome ;)
    Happy programming :D