Search Unity

Question BlueTooth input - iPad mini

Discussion in 'Input System' started by daveMennenoh, Mar 28, 2023.

  1. daveMennenoh

    daveMennenoh

    Joined:
    May 14, 2020
    Posts:
    107
    Simple test scene with a TMP Input field building, with cloud build, to iOS.

    In the Control Settings for the input field - I check Hide Soft Keyboard
    Then when I type on a logitech BT keyboard I can type fast - but only different characters. If I hit the same character multiple times it will only pick up the first one. So I can type 'dave' fine but if I try and type 'dad' only 'da' will appear. Also when I press enter, the responds to it.

    Now, I uncheck Hide Soft Keyboard.
    Now when I type on the BT keyboard I get all the input when I type. I can hit the same key multiple times and it gets it. But when I press enter my code doesn't see it.

    I have tried listening for enter with an OnSubmit listener, listening for \r or \n in Update by looking at Input.inputString or doing like if (Input.GetKeyDown(KeyCode.Return)) and nothing works. I get the same behavior using a BT UPC scanner, which is what I'm actually trying to get to work. I picked up a BT keyboard to help problem solve.

    All my code is working on the MS Surface in Windows... but I need it to work on both platforms.
     
    Last edited: Mar 28, 2023