Webos - Virtual Keyboard

Previous topic - Next topic

Marmor

Anyone sortetd out the way to call the virtual Keyboard in Webos for Glbasic ?

Ian Price

I was wondering about this myself.
I came. I saw. I played.

MrTAToad

Its possible with the Tablet :

Code (glbasic) Select
PDL_Err PDL_SetKeyboardState(PDL_bool bVisible)

But seems not with otehr devices...

Could always use DDgui :)

Kitty Hello

I'm not sure is this is in the PDK I use. And I won't update, because it might break compatibility with the Pixi. Very bad, because we can't use DECLARE as well ( remember the rejection due to the use of dlopen()? )

Ian Price

The other devices don't need the virtual keyboard (seeing as they all have actual ones), so that should be good enough for Touchpad anyway :)
I came. I saw. I played.

Kitty Hello

want a touchpad-only compilation then? It's because - I have to statically link to the SDK library.

Ian Price

No, it's fine as it is :)
I came. I saw. I played.

MrTAToad

Quote from: Kitty Hello on 2011-Sep-14
I'm not sure is this is in the PDK I use. And I won't update, because it might break compatibility with the Pixi. Very bad, because we can't use DECLARE as well ( remember the rejection due to the use of dlopen()? )
Thats true :)

aroldo

Team,

My suggestion is to have a GLBasic commands for WebOS like the PDL commands below.
What do you think?

PDL_GetHardwareID(void);

It returns the following
HARDWARE_UNKNOWN    -1
HARDWARE_PRE        101
HARDWARE_PRE_PLUS   102
HARDWARE_PIXI       201
HARDWARE_VEER       301
HARDWARE_PRE_2      401
HARDWARE_PRE_3      501
HARDWARE_TOUCHPAD   601

Also implement a command to display the virtual keyboard:

PDL_Err PDL_SetKeyboardState(PDL_bool bVisible)

Returns

PDL_NOERROR - Success
PDL_ECONNECTION - Could not communicate with the card.
PDL_EOTHER - Not allowed to bring up the keyboard as a plugin.
[a http://apd-games.com/][img http://apd-games.com/images/APDGames135.png][/a]
MacBook Pro OS X El Capitan
XCode Version 7
iPhone 6 running  iOS 9
iPad Mini running  iOS 7.1
Galaxy S5
Dell Latitude Windows 8 Enterprise
Palm Pre, Palm Pre2

Ian Price

Quote from: MrTAToad on 2011-Sep-14
Its possible with the Tablet :

Code (glbasic) Select
PDL_Err PDL_SetKeyboardState(PDL_bool bVisible)

But seems not with otehr devices...

Could always use DDgui :)


Sorry, how exactly do you call this from GLB?
I came. I saw. I played.

MrTAToad

Theoritically you would just use something like :

Code (glbasic) Select

INLINE
    extern "C" int PDL_SetKeyboardState(int);
ENDINLINE

FUNCTION test%:
INLINE
   PDL_SetKeyboardState(true);
ENDINLINE
ENDFUNCTION


Unfortunately as Gernot won't be using the 3.0 SDK, it may not work...

Kitty Hello

It would be:
Code (glbasic) Select

IMPORT "C" int PDL_SetKeyboardState(int bVisible)


However, I don't think my library has this. If you download the SDK 3.0, there might be a library that contains it. But I'm uncertain if the program will start at all on firmware versions lower than 3.0 then. So.. it's pretty much a dead end as I see it.

Ian Price

OK. No worries. I didn't need it for myself right now, just wanted to test it and have a keyboard routine for something I may need in the future.

Cheers.
I came. I saw. I played.