 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
Jangie
Joined: 05 Nov 2005 Posts: 2
|
Posted: Mon Nov 07, 2005 3:55 pm Post subject: IRC Lurker |
|
|
Hey guys, I've made a halfway irc client... still quite in draft form. I posted on PSPUpdates' forum... click through to see more.
http://forums.qj.net/showthread.php?t=24903
Arwin, I'll be putting in Psprint when I can... this is the app I was talking about. |
|
| Back to top |
|
 |
Arwin
Joined: 12 Jul 2005 Posts: 426
|
Posted: Mon Nov 07, 2005 8:03 pm Post subject: Re: IRC Lurker |
|
|
| Jangie wrote: | Hey guys, I've made a halfway irc client... still quite in draft form. I posted on PSPUpdates' forum... click through to see more.
http://forums.qj.net/showthread.php?t=24903
Arwin, I'll be putting in Psprint when I can... this is the app I was talking about. |
Ok. If you need any help, let me know. Basically, what you do is:
include p_sprint.h
put this up somewhere as a global variable so you can also look at previous keypresses if necessary (sometimes useful):
struct myKey as p_spKey
and then in your main loop where you read the controller for, say, mouse input through the analog controller, you add this:
p_spReadKeyEx(&myKey,pad.Buttons)
if(myKey.keycode > 0)
{
// a key was pressed
switch(myKey.keycode)
{
// deal with the special codes like backspace, enter and so on
// keycodes correspond with default WinPC keycodes, which you
// can find in the online documentation if necessary
// check for modifiers if necessary in myKey.modifiers
// where CTRL = 1, SHIFT = 2, ALT = 4, CTRL+SHIFT = 3, etc.
// if no special keys you want to handle were pressed,
// you can just output the character value in myKey.keychar
}
}
For a more detailed example you can look at the sourcecode of the p_sprint test application, which contains something very similar to the above. |
|
| Back to top |
|
 |
|
|
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
|