Development for Android with physical T9 keyboard

0 favourites
  • 6 posts
From the Asset Store
You can become a REAL game developer. Learn the basics and get resources that will let you get profits from your game!
  • Hello community!

    Recently got into possession Android phone with physical T9 keyboard. So was wondering if Construct 3 has some built in external keyboard support or ability to detect that smartphone has physical keyboard. I didn't found while reading documentation anything about T9 keyboards. So just wondering is it possible or it's irrelevant thing for current day.

    Here device in question:

    Specs of device:

    CPU: Mediatek MT6769V

    GPU: Mali-G52 MC2

    Ram: 4GB

    OS: Android 12 (API 31)

    Resolution: 640x960

    Screen: 5 point touchscreen 3.5 inch

    Sensors: Accelerometer, Gravity, Light, Proximity, Rotation

  • That brings back pre-iPhone memories!

    I’d start by seeing what the Keyboard object returns when a key is pressed (just numbers I’d guess). Then see what happens when you type into a Text Input object.

  • That brings back pre-iPhone memories!

    I’d start by seeing what the Keyboard object returns when a key is pressed (just numbers I’d guess). Then see what happens when you type into a Text Input object.

    Did bit of experimenting. When activate text input it immediately calls for keyboard app like Gboard or Old T9 Keyboard. Trying get inputs from keyboard plugin no results. Looks like it has some proprietary system. But then Old T9 keyboard app reads inputs of device and corresponds to a key so there is either using some more deeper stuff that Construct 3 can't access or it's just engine throwing fit because well it's odd device

    Edit 1 (there gonna be a lot)

    While starting test inputs weren't recognized but after switching into text input then switching it off I started getting input codes off keyboard raging from 37-40 for Navi and 48-57 for numeric so some sorta keyboard emulation is but it's not immediate gonna build APK and see maybe it's issue with focus

    Edit 2 (perhaps final)

    After building APK and testing on phone got immediately reads of input keys showing issue was with focus. In theory it's possible to write native game for this specific device since keycodes will be different for other similar devices like Cat S22 but it looks like on some free time when not be on main project will write small game using it's physical input or mix both touch-screen and T9 keyboard

  • New Update

    With a little testing found 3 buttons not possible to program.

    These

    But application like Old T9 keyboard and J2Me emulators detect them

    J2Me detects those buttons like "Keycode_Menu" top left and in numeric keypad * and # as "Keycode_Star" and "Keycode_Pound"

    So can I use these keycodes in Keyboard plugin or it must be only numeric?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Use the lastkeycode expression on any key pressed to see exactly what key code construct sees, if any, when those buttons are pressed.

  • Use the lastkeycode expression on any key pressed to see exactly what key code construct sees, if any, when those buttons are pressed.

    Using expression both * and # are seen as code 0 while menu key does nothing. While using touch input can detect back key but it has no info for menu key.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)