Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
0
Question by Belchlord · Jul 19, 2010 at 08:58 PM · keyboardbuffer

Keyboard Buffer

Im working on a flight combat system, when I have 3 keys pressed the 4th, or 5th does not register. This used to happen on my old 386 with some DOS games I was able to up my keyboard buffer from my bios to work around it. I searched the forums and some guy mentioned buying a new more expensive keyboard. Thats just about the most absurd thing I've ever heard as nearly all games I own can dectect more than 3 keys pressed at a time. There must be a work around, what am I doing wrong? Im using Input.GetAxis(). Any help would be great. thnx

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by qJake · Jul 19, 2010 at 09:17 PM

Keyboards typically limit the number of keys down to 5, though this differs on a per-keyboard basis. I've seen it higher, and I've seen it lower. My keyboard, for example, can only detect 5 keys down at a time, for example, if I press q, w, e, r, and t, then if I press y nothing happens. Your keyboard may limit the number of keys down to 3, and it's easy to test. Just type somewhere, holding each key down as you type it (type fast!). When it stops typing, that's how many keys you can have down at the same time. This limit typically excludes modifier keys like Control, Alt, Shift, and the Windows key, but again, it differs per-keyboard.

If you want to create a game with more input, you should think about using a gamepad (like a joystick, or an Xbox controller) instead of a keyboard, which Unity does in fact support. As far as I know, they support as many buttons up and down as are on the device (I've played games that have used six+ buttons down at the same time on a controller).

Comment
Add comment · Show 1 · Share
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 Julian-Glenn · Jul 19, 2010 at 09:22 PM 1
Share

You could also code some of the inputs to be sticky or toggles so the player doesn't have to be an ambidextrous alien with 4 hands to play ;)

avatar image
1

Answer by Eric5h5 · Jul 19, 2010 at 10:07 PM

My keyboard detects up to 6 keys simultaneously in Unity, so the suggestion of getting a better (not necessarily more expensive) keyboard isn't absurd, it's reality. Unity can only work with what it's given...if your keyboard won't register more than 3 keys at once, then Unity can't magically get information that isn't there. As for your games which do, you're probably including modifier keys which don't necessarily count toward the maximum number of simultaneous presses, depending on the keyboard.

Comment
Add comment · Share
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

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Input touch doesn't detect native keyboard 1 Answer

Unity Editor Misreads Keyboard Input While Shift is Held 1 Answer

Custom Touch Keyboard instead of Native 0 Answers

how can open file from memory or buffer ? 0 Answers

Graphics Command Buffers don't work with my project 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