forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

number Keyboard

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
floorball92



Joined: 05 Apr 2008
Posts: 30
Location: Germany -> Hessen -> Hanau

PostPosted: Wed Aug 13, 2008 10:50 pm    Post subject: number Keyboard Reply with quote

Hello,

I need an onscreen keyboard. The special thing is, that there only should be the numbers 0-9 and the dot. Is there an finish sript or do I have to create it on my own work??

Bye, Sebastian
_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
k!rk



Joined: 18 Jul 2008
Posts: 11

PostPosted: Wed Aug 13, 2008 11:18 pm    Post subject: Reply with quote

You have to build one on your own if you need such a keyboard.
Back to top
View user's profile Send private message
floorball92



Joined: 05 Apr 2008
Posts: 30
Location: Germany -> Hessen -> Hanau

PostPosted: Thu Aug 14, 2008 1:27 am    Post subject: Reply with quote

Thank you.

I thougt it, but its better to ask then do it on my own work and then see, that it wasn' t nessesary.

Bye, Sebastian
_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
pspZorba



Joined: 22 Sep 2007
Posts: 156
Location: NY

PostPosted: Thu Aug 14, 2008 4:14 am    Post subject: Reply with quote

no no

You can use the (sony) OSK keyboard, you can set it up to have only the numbers.

There are samples in the SDK.

if you have problem and use CPP, I can provide you a class that encapsulate everything.
_________________
--pspZorba--
NO to K1.5 !
Back to top
View user's profile Send private message
floorball92



Joined: 05 Apr 2008
Posts: 30
Location: Germany -> Hessen -> Hanau

PostPosted: Thu Aug 14, 2008 11:55 pm    Post subject: Reply with quote

oh yes, please give me the class. But is it possible to use the dot with the "only Number Sony OSK" ??
_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
k!rk



Joined: 18 Jul 2008
Posts: 11

PostPosted: Fri Aug 15, 2008 2:52 am    Post subject: Reply with quote

no, thats exactly why i said you have to build one yourself rather than using the build in osk.
Back to top
View user's profile Send private message
pspZorba



Joined: 22 Sep 2007
Posts: 156
Location: NY

PostPosted: Fri Aug 15, 2008 9:24 am    Post subject: Reply with quote

Sorry guys but K!rk is right, I didn't see "the dot".

However, with the Sony 's osk you can have several keyboards you cycle througth, using the "select" key, I mean during the capture.

So you can set up the num keyboard + one of the classic keyboard in which there is the "dot".

Each time you want to access the "dot" you press "select" when you want to go back to the number keyboard you press "select".

If this is acceptable for you I can post the code.
_________________
--pspZorba--
NO to K1.5 !
Back to top
View user's profile Send private message
mypspdev



Joined: 11 Jul 2007
Posts: 178

PostPosted: Fri Aug 15, 2008 6:06 pm    Post subject: Reply with quote

Yes, please post your code.
I'm using the $onY OSK but for my application I want immediately the Numeric OSK screen instead of literal default, so I have to manage select.
May be there is a parameter to run calling the OSK to immediately show the numeric screen. Have you any chance to clarify how to?
please let post your code, anyway.
regards
Back to top
View user's profile Send private message
ne0h



Joined: 21 Feb 2008
Posts: 386

PostPosted: Fri Aug 15, 2008 11:13 pm    Post subject: Reply with quote

There's a sample in the sdk!
See the PSP_UTILITY_OSK_INPUTTYPE_*!
Back to top
View user's profile Send private message
pspZorba



Joined: 22 Sep 2007
Posts: 156
Location: NY

PostPosted: Sat Aug 16, 2008 11:59 am    Post subject: Reply with quote

Here is the class

http://rapidshare.com/files/137646502/pspZorba040-osk2.rar.html

You will find a main.cpp in which you have a sample.
In this sample you will have to capture two fields:
- a URL (ip or url) you have two keyboards you can cycle.
- a port, there is only a keyboard with number.

If you want to use it in your own HB, the class assumes you are able to init the GU and that there is a list called theGuList.

If you don't have the init, use the function provided in the main
If your list has another name, modify the define in ZBvirtualKeyboard.cpp line 43.
_________________
--pspZorba--
NO to K1.5 !
Back to top
View user's profile Send private message
mypspdev



Joined: 11 Jul 2007
Posts: 178

PostPosted: Thu Aug 21, 2008 5:22 am    Post subject: Reply with quote

ne0h wrote:
There's a sample in the sdk!
See the PSP_UTILITY_OSK_INPUTTYPE_*!

Thanks,
I was working with an old Toolchain!!
That's why I did not found all osk issues: my program was derived from one of the first attempt to set up and run OSK, now osk is fully at "open-air"...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group