PSPIRKeyB Lib 0.0.5

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
angelo
Posts: 168
Joined: Wed Aug 29, 2007 9:34 pm

PSPIRKeyB Lib 0.0.5

Post by angelo »

Hello everybody, here is the latest PSPIRKeyB Lib. It will be usefull to all IRDA developers (including ZX-81).

Please add this to the SVN!

The changelog is quite small, but has a lot to offer:

Code: Select all

0.0.5:
	Added key repeats and some more dirvers.
	Added IRDAMon (by Dr. Vegetable) to make coding drivers easier.
I've compiled PSPWrite with this new lib and the key repeats really improve the application.

A small application made br (Dr. Vegetable) has also been added which allows devs to scan each IRDA key so it can be corectly mapped.

The package can be found here:

http://piKey.Kloplop321.com/Release/PSPIRKeyB_Lib.zip

Please add this to your environment guys and any devpack installers!

Thanks

Angelo
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

When posting patches for SVN, please post them as patches. It's easier to review and figure out which pieces should get committed that way.

Code: Select all

--- asciidemoprx/Makefile       (revision 2432)
+++ asciidemoprx/Makefile       (working copy)
@@ -1,16 +1,20 @@
 TARGET = asciidemo
 OBJS = main.o
 
-INCDIR = ../libpspirkeyb/include ../libpspirkeybprx/include
+INCDIR = $(PSPDEV)/SDK/include ../libps CFLAGS = -O2 -G0 -Wall
 CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
 ASFLAGS = $(CFLAGS)
 
-LIBDIR = ../libpspirkeybprx
+LIBDIR = $(PSPDEV)/SDK/lib ../libpspirkeybprx
pirkeyb/include ../libpspirkeybprx/include
SDK should be lowercase, shouldn't it? Same with LIBDIR below this.

I'll commit it anyway, post a patch if it's wrong.
angelo
Posts: 168
Joined: Wed Aug 29, 2007 9:34 pm

Post by angelo »

I appologise. This is my first upload. =)

As for the cApItALs... again that wasn't me. This is just an edited version of the 0.0.4 version.

Thanks for the upload! Hopefully many will find it usefull!

Angelo
angelo
Posts: 168
Joined: Wed Aug 29, 2007 9:34 pm

Post by angelo »

EDIT:

I do appologise. ZX81 had pointed out to me that there were some referances to kubridge, meaning that it can't be uploaded.

I also gave the wrong URL.

If you can please revisit the link, there is the latest PSPIRKeyB Lib.

Sorry for the inconvienience!

Angelo
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

angelo wrote:EDIT:

I do appologise. ZX81 had pointed out to me that there were some referances to kubridge, meaning that it can't be uploaded.

I also gave the wrong URL.

If you can please revisit the link, there is the latest PSPIRKeyB Lib.

Sorry for the inconvienience!

Angelo
The only reference to kubridge I could find was in the ascii demo. So why does that prevent it from being uploaded?
angelo
Posts: 168
Joined: Wed Aug 29, 2007 9:34 pm

Post by angelo »

Because (according to ZX81) kubridge isn't part of the SDK. O_o

I dunno just doing what he said. More over I added the IRDA loader to all EBOOTS. This will stop any IRDA problems for PSP's with 3.80+.

Angelo
User avatar
zx-81
Posts: 11
Joined: Fri Apr 07, 2006 5:38 pm
Location: France
Contact:

Post by zx-81 »

J.F. wrote:The only reference to kubridge I could find was in the ascii demo. So why does that prevent it from being uploaded?
It doesn't prevent from being uploaded. If you unzip that archive and try to compile it using the makefile provided you will need a kubridge.h and kubridge lib to link example. That's only what i said. afaik kubridge is not part of SDK (or it is not part of the files i've checkout few weeks ago).

Btw examples binaries don't seem to require any kubridge lib, the #include <kubridge.h> can be removed in C file, and -lkubridge from Makefile without any compilation / link error.

The .zip archive seems to have been tested using cygwin on a FAT32 filesystem, that might explain issue with lower/upercase letters in directory names and filenames (in Makefile etc ...). Under linux with ext3 it doesn't work ...

As i told to Angelo, i've tried to compile this new lib and link pspwrite with it. Key repeat feature works fine for arrow keys but it doesn't work properly with letters (even changing delay parameters in .ini file).

As far as I'm concerned i will wait a bit before to release any of my IR homebrew using this new lib, it is still in early stage.
The only good is knowledge and the only evil is ignorance.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Post patches to fix the problems and I'll commit them.
angelo
Posts: 168
Joined: Wed Aug 29, 2007 9:34 pm

Post by angelo »

What excactly do you want from this "patch".

Most files have been edited in some way...

The final copy is the ZIP file posted in my first post. ;)

Angelo
User avatar
zx-81
Posts: 11
Joined: Fri Apr 07, 2006 5:38 pm
Location: France
Contact:

Post by zx-81 »

angelo wrote:What excactly do you want from this "patch".

Most files have been edited in some way...

The final copy is the ZIP file posted in my first post. ;)

Angelo
What he wants is that :
http://www.cpqlinux.com/patch.html

;)
The only good is knowledge and the only evil is ignorance.
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

zx-81 wrote:That's only what i said. afaik kubridge is not part of SDK (or it is not part of the files i've checkout few weeks ago).
Those are part of D_A's SDK released periodically with custom firmware releases (whenever he adds to the CFW functionality), and every dev should have it. Maybe it should be incorporated into the main pspsdk. It doesn't change very often, so it wouldn't take much maintenance.

BTW, the latest D_A SDK is in the 401M33-2.rar archive on D_A's site (and elsewhere).
angelo
Posts: 168
Joined: Wed Aug 29, 2007 9:34 pm

Post by angelo »

Ok thanks guys. I know know how to make a patch!

I have request for more drivers, but due to school I cannot do it at the moment.

Thanks!

Angelo
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

I meant, check out the current version of the pspsdk repository, make future changes directly to that tree, and post the "svn diff" output when you want to submit changes.
angelo
Posts: 168
Joined: Wed Aug 29, 2007 9:34 pm

Post by angelo »

ok thanks!
Post Reply