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
1
Question by Ray-Pendergraph · Dec 03, 2014 at 02:17 AM · guiioskeyboard

How do create iOS virtual keyboard input for raw ASCII control characters ?

I have a game in which the GUI was written using the old GUI system. We are currently porting it over to iOS and because of the nature of the application we need to be able to press control buttons that are only normally available on a desktop keyboard (like CTRL, ESCAPE, etc.). I have seen several old posts about this and some recent ones where people worked around this issue by styling a button like a text field and invoking the keyboard like that. We would like to avoid this if possible.

  • Is it possible create a native keyboard as a plugin and have Unity invoke that for GUI.TextField instead of the default built in keyboard types?

  • Is it possible to create a pop out panel with uGUI that augments the OS keyboard with the special keys and "inject" them into whatever textfield has focus? I have dealt before with the focus system in the older GUI and remember it to be painful. Any hints would be appreciated.

  • Is this possible or at least more workable with the uGUI system?

Edit: December 4, 2014

After looking around for this for a little bit I now think that the best way to accomplish this would be to write an Input Accessory View. A custom iOS keyboard would work for this but would probably be overkill for the augmentation of a few keys. The new issue is that any keyboard input is captured either through the focused text field that invoked the keyboard or the Touch Screen Keyboardinstance that's returned from the open call. Both of these (at least as far as I can tell) filter non-ASCII or at least control characters out of their models so even if you did send these characters through an accessory or custom keyboard they would never be reported in Unity. So at present it seems impossible to send raw control characters to the text field or a keyboard instance. It might be possible to come up with a command syntax to send these through though such as "{ESC}, {CTRL}, etc" or something similar.

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

0 Replies

· Add your reply
  • Sort: 

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

25 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

Related Questions

TextField not getting focus on iOS 1 Answer

Issue with GUI.TextArea keyboard on iPhone 0 Answers

Help with mobile keyboard 0 Answers

Assigning special Keyboard to GUI.TextField 0 Answers

iphone album art how? 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