I'm seeing an issue when entering numeric text into an editbox that contains a decimal point. If you set the editbox to numbers only (to bring up the numeric keypad instead of alpha) and enter a number with a decimal point, the flashing cursor will sometimes stick to the left of the point. For example, if I try to type the number "500.2" I instead get "5002.", but it is intermittent. In fact, it appears to be related to how quickly you enter the number. Too fast and the cursor doesn't increment with the decimal point. Type very slowly and it works fine. Can anyone confirm this?
Example code to test with (broadcast to moblile device to test numeric keyboard input):
// Project: input_test
// Created: 23-01-26
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle( "input_test" )
SetWindowSize( 1024, 768, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( 100, 100 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 )
eb = CreateEditBox()
SetEditBoxSize(eb,30,10)
SetEditBoxInputType(eb,1) // force numeric only input
SetEditBoxPosition(eb,20,20)
do
Print( ScreenFPS() )
Sync()
loop
I'm using a Google Pixel 6 Pro. Please let me know if you get the same problem and the device you are using. Thank you!