Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
This question was closed Oct 03, 2017 at 03:11 PM by TheManx for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by TheManx · Oct 03, 2017 at 01:56 PM · getaxis

[Solved] GetAxis always returns 0.8547567 & -1

Code screen shot to follow; Unity version 2017.1.1f1 Personal. Windows 10 OS on Alienware area 51

Doing a Udemy course about Unity. One of the code samples is key movement (WADS) using Input.GetAxis. The code below is the ONLY code in the game, attached to a sphere (Player) on a plane called Ground. Each has a single material for color. There are no other assets other then Unity default camera and light.

This as simple a game as it sounds, just a lesson in GetAxis.

IF game play area is selected, Vertical always returns 0.8547567 and Horizontal returns -1. IF console is selected during the same execution, both Axis return to 0 These results never vary from execution to execution.

  • Disconnected ALL Joysticks and joypads (Logitech G13) - No impact.

  • Wireless keyboard and mouse. Pulled the batteries on both during a run. - No impact.

  • Looked for extraneous mouse/joy drivers and tools in the device manager & system tray and disabled them - No impact.

  • Completely reconstructed the application to force Unity to recompile the library. - No impact

  • Went into project settings - inputs and removed the positive & negative input values, leaving them BLANK. - No Impact

  • Expanded the code to show mouse button, raw and anykey data as well;

alt text

Result looks like this in console;

alt text

I'm out of ideas what it could be.

Thanks!

capture4.png (29.3 kB)
capture5.png (24.9 kB)
Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image TheManx · Oct 03, 2017 at 03:10 PM 0
Share

Solved.

Turns out there was a set of peddles under the desk. Disconnected them and everything worked.

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

115 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to Rotate my spaceship on the Y axis or turn it around but not right around like half using the horizontal 0 Answers

How can I simulate the smoothness of the Input.GetAxis? 0 Answers

imput.GetAxes ("Horizontal") moving/flip side together, help! 4 Answers

Input.GetAxis And Time.deltaTime 0 Answers

Pressing two buttons on the xbox D-pad but not moving both directions at once 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges