GLBasic forum

Main forum => GLBasic - en => Topic started by: Marmor on 2011-Sep-14

Title: Webos - Virtual Keyboard
Post by: Marmor on 2011-Sep-14
Anyone sortetd out the way to call the virtual Keyboard in Webos for Glbasic ?
Title: Re: Webos - Virtual Keyboard
Post by: Ian Price on 2011-Sep-14
I was wondering about this myself.
Title: Re: Webos - Virtual Keyboard
Post by: 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 :)
Title: Re: Webos - Virtual Keyboard
Post by: 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()? )
Title: Re: Webos - Virtual Keyboard
Post by: Ian Price on 2011-Sep-14
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 :)
Title: Re: Webos - Virtual Keyboard
Post by: Kitty Hello on 2011-Sep-14
want a touchpad-only compilation then? It's because - I have to statically link to the SDK library.
Title: Re: Webos - Virtual Keyboard
Post by: Ian Price on 2011-Sep-14
No, it's fine as it is :)
Title: Re: Webos - Virtual Keyboard
Post by: MrTAToad on 2011-Sep-14
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 :)
Title: Re: Webos - Virtual Keyboard
Post by: aroldo on 2011-Sep-14
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.
Title: Re: Webos - Virtual Keyboard
Post by: Ian Price on 2011-Sep-20
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?
Title: Re: Webos - Virtual Keyboard
Post by: MrTAToad on 2011-Sep-20
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...
Title: Re: Webos - Virtual Keyboard
Post by: Kitty Hello on 2011-Sep-20
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.
Title: Re: Webos - Virtual Keyboard
Post by: Ian Price on 2011-Sep-20
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.