Interesting lines of code found in Android 14 Beta 3.
Android 14 Beta 3 became available yesterday, and it is already the first stage of the platform’s stability phase, and experts have already found interesting functions. It looks like Android 14 will be built with built-in stylus support, which makes it likely that the Pixel Tablet and even the Pixel Fold will soon receive a new stylus-shaped accessory.
Although the API diff is not yet operational, I discovered new keycode constants in the KeyEvent documentation: KEYCODE_STYLUS_BUTTON_PRIMARY, KEYCODE_STYLUS_BUTTON_SECONDARY, KEYCODE_STYLUS_BUTTON_TERTIARY, and KEYCODE_STTON_TERTIARY.
Respectively, these refer to the primary button in… pic.twitter.com/OoNPygyAU9
Mishaal Rahman June 8, 2023
Depending on the code, a three-button pen with primary, secondary, and tertiary function buttons, as well as the click button on traditional pens (does this have an official name anyway?) is drawn on the end of the pen. The program supports files USI 2.0 (Universal Stylus Initiative) standard, button functionality can be turned off, and a button click appears to open the Notes app by default.