need help adding a new IR keyboard.

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

Moderators: cheriff, TyRaNiD

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

Post by angelo »

I'm pretty sure one he has the wheel rolling, the momentum will pick up. Jee that was a crappy metaphore... lol

I'll do it J.F, I've seen the picture and I know what to do. I've lived 80% of my life writing keymaps!

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

Post by J.F. »

angelo wrote:I'm pretty sure one he has the wheel rolling, the momentum will pick up. Jee that was a crappy metaphore... lol

I'll do it J.F, I've seen the picture and I know what to do. I've lived 80% of my life writing keymaps!

Angelo
The standard qwerty map should be sufficient. I think he meant a map of what key does what, like pressing BlueFn + W gives you 2, or GreenFn + W gives you F2.
angelo
Posts: 168
Joined: Wed Aug 29, 2007 9:34 pm

Post by angelo »

Yeah... just adding:

Code: Select all

[KEY_W]
Normal = 'w';
Shift = 'W';
Compose = '2';
CTRL = KEY_F2;
Simple enough!?! If he's truly enthusiastic about it and has common sense, he'll work it out.

OFF TOPIC: Todaymy Targus randomly died! Was working in the morning and died in the afternoon. I tested it with IRDAMon... nothing

If I tap the tiny power button on it it poduces a small signal and IRDAMon picks it up as "FF" (interferance).

Order new baterries, hopefully that'll fix it. I don't want to spend £15 on a keybaord that's no loner in production! They're getting more and more rare! I guess that's ours, Fanjita's and ZX-81's fault eh!?

Targus make millions and we get paid nothing!

Angelo
User avatar
Legacyxero
Posts: 23
Joined: Fri Sep 12, 2008 4:42 am

Post by Legacyxero »

angelo wrote:Yeah... just adding:

Code: Select all

[KEY_W]
Normal = 'w';
Shift = 'W';
Compose = '2';
CTRL = KEY_F2;
Simple enough!?! If he's truly enthusiastic about it and has common sense, he'll work it out.

OFF TOPIC: Todaymy Targus randomly died! Was working in the morning and died in the afternoon. I tested it with IRDAMon... nothing

If I tap the tiny power button on it it poduces a small signal and IRDAMon picks it up as "FF" (interferance).

Order new baterries, hopefully that'll fix it. I don't want to spend £15 on a keybaord that's no loner in production! They're getting more and more rare! I guess that's ours, Fanjita's and ZX-81's fault eh!?

Targus make millions and we get paid nothing!

Angelo

Thanks so much guys, i cant express how happy I am now that my keyboard is working. Just wrapped up the key map, but for some reason I cant get pikey to work in apps like PSP write, or AFKIM.

and one other thing, when writing the keymap, do they keys need to be in order from left to right and from top to bottom?


EDIT: well i thought i had the keymap good, but i entered this so I could type my numbers:

[KEY_1]
Normal = 'Bluefn+q';

[KEY_2]
Normal = 'Bluefn+w';

[KEY_3]
Normal = 'Bluefn+e';

[KEY_4]
Normal = 'Bluefn+r';

[KEY_5]
Normal = 'Bluefn+t';

[KEY_6]
Normal = 'Bluefn+y';

[KEY_7]
Normal = 'Bluefn+u';

[KEY_8]
Normal = 'Bluefn+i';

[KEY_9]
Normal = 'Bluefn+o';

[KEY_0]
Normal = 'Bluefn+p';


that didnt do ANYTHING, (keep in mind im testing my keyboard in the psp browser)

ALSO:

when I hold shift to make a capital letter, it pulls up reandom website suffix's and sometimes numbers.
angelo
Posts: 168
Joined: Wed Aug 29, 2007 9:34 pm

Post by angelo »

Great that it all works mate!

Answers:

- No the keymap doesn't have to be coded in some kind of order. It's dumped straight to the RAM. You'll find most are coded that way for tidiness. But heck, code your [KEY_H] next to your [KEY_Z]. It doesn't matter.

- You'll find you keyboard fails in ZX81's applications for 2 reasons:

- His applications conflict with piKey. They oth try and do the same job and it confuses the PSP and freezes.

- I added the driver to pikey, but ZX81 hasn't added the driver to PSPWrite. ;)

When I get round to fixing my IR keyboard, I think I can find a way for you to get around this.

It involves turning off IRDA in PSPWrite (change the keyboard in the PSPWrite's PSPIRKeyB.ini to '0') and allow piKey to run.

The you may be able to enable Danzeff (CTRL + D) and type that way.

Sounds complex doesn't it?!?

When I get a chance I'll work on it mate. But, ZX81 may come out with new drivers added. Watch this space.

As for now, just enjoy piKey. I'm sure everybody will update soon!

Have fun!

Angelo

P.S. Thanks J.F for coding the driver! See how happy you've made this guy! lol
angelo
Posts: 168
Joined: Wed Aug 29, 2007 9:34 pm

Post by angelo »

As for the wierd letter input for entering websites, you need to press the "Select" button on your PSP once.

You only have to do this if you're typing web site names. This method will ensure perfect input.

Read the Unofficial piKey 0.4 FAQ Maunal. You'll find more information about it there. I belive it near the end of the document. (Look out for the PSP screenshot image!)
EDIT: well i thought i had the keymap good, but i entered this so I could type my numbers:

[KEY_1]
Normal = 'Bluefn+q';

[KEY_2]
Normal = 'Bluefn+w';

[KEY_3]
Normal = 'Bluefn+e';

[KEY_4]
Normal = 'Bluefn+r';

[KEY_5]
Normal = 'Bluefn+t';

[KEY_6]
Normal = 'Bluefn+y';

[KEY_7]
Normal = 'Bluefn+u';

[KEY_8]
Normal = 'Bluefn+i';

[KEY_9]
Normal = 'Bluefn+o';

[KEY_0]
Normal = 'Bluefn+p';


that didnt do ANYTHING, (keep in mind im testing my keyboard in the psp browser)

ALSO:

when I hold shift to make a capital letter, it pulls up reandom website suffix's and sometimes numbers.
Ahhh! You're doing it wrong. Let me give you a few examples. You can then carry on from there.

Code: Select all

[KEY_P]
Normal = 'p';
Shift = 'P';
Compose = '0';
See?

Here are a few tips:

Fn = Comopose
Alt = ALT
CTRL = CTRl

Does that help a bit?

Read all the documents that come in Unofficial piKey 0.4!

If you manage to get it done, test every key and make final adjustments and send me a copy of the keymap please. I'll add it to pikey and the PSPIRKeyB lib =)

Let me know if you need more help. I'm very happy to offer you my assistance. =D

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

Post by J.F. »

You DON'T need a map to generate the Blue/Green keys!!!!! The driver does that for you! In fact, BlueFn and GreenFn don't generate codes at all, so you CANNOT use them in maps!!!!!!! The driver doesn't generate BlueFn+W - when it see that combo it generates KEY_2. All you need for the new keyboard is the standard shift+letter = capitol and shift+number = symbol mapping. The CMD key is mapped to left/right meta, and there is no compose key.
angelo
Posts: 168
Joined: Wed Aug 29, 2007 9:34 pm

Post by angelo »

So in theory, it should be mapped perfectly J.F?

...

*Shrugs* seems this is what happened when you're coding a driver for a keyboard you don't have!

We'll I've given him an example on writing a keymap (which overides the driver) so he can edit it himself. the important part is that each key has a scancode...

We've provided arm bands and a rubber ring J.F, he now has to swim... and cough up with a keymap!

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

Post by J.F. »

It all depends on what codes the driver can generate. The map is to help generate codes for keys that don't exist that the driver doesn't handle itself. For example, uppercase vs lowercase. In the case of the new palm driver, I had two function keys available to help generate keys, but there's only one compose key in pspirkeyb, so I went lower level and used the keys inside the driver rather than higher level with the map.

When in doubt as to what the driver can generate and what needs to be in a map file, look at the tables for the keyboard in libpspirkeyb/kbdkeyboards.h. You'll see that the palm one keyboard has three maps - a normal map, and maps for when you are pressing BlueFn or GreenFn. Note that I COULD make a fourth table for when pressing BlueFn AND GreenFn. At the moment, pressing both Fn keys is the same as just pressing BlueFn alone.
benji
Posts: 17
Joined: Fri Oct 14, 2005 2:41 pm

Post by benji »

Please consider applying the current patch. It adds the following:

- Support for the ThinkOutside Sotaway IR Keyboard
- Remove references to kubridge
- Change the repeat detection code to use the RTC instead of the call count. This ensures consistent repeat times no matter how fast the app is rendering.
- Make irkeybtest build a prx for loading in PSPLink on firmwares >= 3.x
- Fix so keymap_decode_maptable_rec doesn't generate multiple characters when shift + meta or compose are held, should may be done for ctrl and alt?

Note that the stowaway keymap is a bit of a hack in that it considers the blue bunction key as "compose" and the green function key as "meta". This is to get around the fact that there's one less row of keys (ie: key Q is also 1 and ! depending on which function key is pressed). And since there were no raw key codes for the characters that are usually shift + number (ie: !@# etc.), I had to improvise.

I would also suggest you PM one of the past pspirkeyb committers with a cleanly applying diff of the current SVN version and the "magic" official version floating around in this thread so it can get committed to the SVN repository. ooPo and monsti seem like good candidates.

benji

Code: Select all

Index: asciidemo/main.c
===================================================================
RCS file: /var/cvs/PSPIRKeyB_Lib/asciidemo/main.c,v
retrieving revision 1.1
diff -u -r1.1 main.c
--- asciidemo/main.c	21 Sep 2008 00:16:45 -0000	1.1
+++ asciidemo/main.c	22 Sep 2008 03:12:39 -0000
@@ -9,7 +9,6 @@
 #include <pspkernel.h>

 #include <pspdebug.h>

 #include <pspctrl.h>

-#include <kubridge.h>

 

 #include <pspirkeyb.h>

 #include <pspirkeyb_rawkeys.h>

Index&#58; asciidemo/Makefile
===================================================================
RCS file&#58; /var/cvs/PSPIRKeyB_Lib/asciidemo/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- asciidemo/Makefile	21 Sep 2008 00&#58;16&#58;45 -0000	1.1
+++ asciidemo/Makefile	22 Sep 2008 03&#58;12&#58;39 -0000
@@ -9,7 +9,7 @@
 LIBDIR = $&#40;PSPDEV&#41;/SDK/lib ../libpspirkeyb
 LDFLAGS =
 
-LIBS = -lpspkubridge -lpspirkeyb -lpsppower
+LIBS = -lpspirkeyb -lpsppower -lpsprtc
 
 BUILD_PRX = 1
 PSP_FW_VERSION = 401
Index&#58; irkeybtest/Makefile
===================================================================
RCS file&#58; /var/cvs/PSPIRKeyB_Lib/irkeybtest/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- irkeybtest/Makefile	21 Sep 2008 00&#58;16&#58;44 -0000	1.1
+++ irkeybtest/Makefile	22 Sep 2008 03&#58;12&#58;39 -0000
@@ -1,6 +1,8 @@
 TARGET = irkeybtest
 OBJS = main.o
 
+BUILD_PRX = 1
+
 INCDIR = ../libpspirkeyb/include
 CFLAGS = -O2 -G0 -Wall
 CXXFLAGS = $&#40;CFLAGS&#41; -fno-exceptions -fno-rtti
@@ -9,7 +11,7 @@
 LIBDIR = ../libpspirkeyb
 LDFLAGS =
 
-LIBS = -lpspirkeyb -lpsppower -lpspaudiolib -lpspaudio
+LIBS = -lpspirkeyb -lpsppower -lpspaudiolib -lpspaudio -lpsprtc
 
 EXTRA_TARGETS = EBOOT.PBP
 PSP_EBOOT_TITLE = IR Keyb Test
Index&#58; irkeybtest/main.c
===================================================================
RCS file&#58; /var/cvs/PSPIRKeyB_Lib/irkeybtest/main.c,v
retrieving revision 1.1
diff -u -r1.1 main.c
--- irkeybtest/main.c	21 Sep 2008 00&#58;16&#58;44 -0000	1.1
+++ irkeybtest/main.c	22 Sep 2008 03&#58;12&#58;39 -0000
@@ -9,6 +9,7 @@
 #include <pspkernel.h>

 #include <pspdebug.h>

 #include <pspctrl.h>

+#include <psputility_modules.h>

 

 #include <string.h>

 

@@ -243,6 +244,7 @@
 	pspDebugScreenInit&#40;&#41;;

     printf&#40;"PSP Irda Keyboard test\n"&#41;;

 

+    sceUtilityLoadModule&#40;PSP_MODULE_IRDA&#41;;

     ret = pspIrKeybInit&#40; CONFIG_FILE, KERNELMODE &#41;;

     if&#40; ret == PSP_IRKBD_RESULT_OK &#41;

     &#123;

Index&#58; libpspirkeyb/pspirkeyb.c
===================================================================
RCS file&#58; /var/cvs/PSPIRKeyB_Lib/libpspirkeyb/pspirkeyb.c,v
retrieving revision 1.1
diff -u -r1.1 pspirkeyb.c
--- libpspirkeyb/pspirkeyb.c	21 Sep 2008 00&#58;16&#58;44 -0000	1.1
+++ libpspirkeyb/pspirkeyb.c	22 Sep 2008 03&#58;12&#58;39 -0000
@@ -9,6 +9,7 @@
 #include <pspkernel.h>

 #include <pspdebug.h>

 #include <psppower.h>

+#include <psprtc.h>

 

 #include <string.h>

 #include <stdio.h>

@@ -49,7 +50,7 @@
 static keyboard_input g_keyboard_input_CB = NULL;

 static int g_keydelay = -1;

 static int g_keyrate = -1;

-int g_lastirkey = -1;

+int g_lastirkey = -1; 

 

 /* initalize the keyboard with a given type and mapfile */

 static int pspIrKeybSetKeyboard&#40;int keyboard, const char* mapfile&#41;;

@@ -73,6 +74,7 @@
 static int palmuw&#40;unsigned char* buffer, int *length&#41;;

 static int palm1&#40;unsigned char* buffer, int *length&#41;;

 static int hama&#40;unsigned char* buffer, int *length&#41;;

+static int stowaway&#40;unsigned char* buffer, int *length&#41;;

 static int pspIrdaSetBaud&#40; int baudrate &#41;;

 

 int pspIrKeybInit&#40;const char* inifile, int kernelmode&#41;

@@ -153,8 +155,10 @@
 

 int pspIrKeybReadinput&#40;void* buffer, int *length&#41;

 &#123;

-	static int delay = -1;

+	static u64 nextRepeat = 0;

+	

 	int err;

+	u64 curTick = 0;

 

     if&#40; !buffer || !length || !g_keyboard_input_CB &#41;

         return -1;

@@ -176,25 +180,22 @@
     /* input from from keyboard */

     err = g_keyboard_input_CB&#40; &#40;unsigned char*&#41;buffer, length &#41;;

 

-	if &#40;err == 0&#41;

+    sceRtcGetCurrentTick&#40;&curTick&#41;;

+    

+	if &#40;&#40;err == 0&#41; && &#40;g_keydelay != 0&#41;&#41;

 		// got key, reset key repeat

-		delay = g_keydelay;

+		nextRepeat = curTick + g_keydelay;

 

     if &#40;err == -1&#41;

     &#123;

-		delay--;

-

-		if &#40;delay == 0&#41;

+		if &#40;&#40;nextRepeat != 0&#41; && &#40;curTick > nextRepeat&#41;&#41;

 			if &#40;g_lastirkey != -1&#41;

 			&#123;

 				// do key repeat

 				keymap_decode&#40; g_outputmode, g_lastirkey, KEY_PRESSED, buffer, length &#41;;

 				err = 0;

-				delay = g_keyrate; // delay until next repeat

+				nextRepeat = curTick + g_keyrate; // delay until next repeat

 			&#125;

-

-		if &#40;delay < 0&#41;

-			delay = g_keydelay;

     &#125;

 

     return err;

@@ -303,6 +304,10 @@
             g_keyboard_input_CB = palm1;

             g_baudrate = B9600;

             break;

+		case PSP_IRKBD_TYPE_STOWAWAY&#58;

+			g_keyboard_input_CB = stowaway;

+			g_baudrate = B9600;

+			break;

         default&#58;

             return PSP_IRKBD_RESULT_UNKNOW_KEYBOARD;

     &#125;

@@ -1364,3 +1369,69 @@
 

     return 0;

 &#125;

+

+static int stowaway&#40;unsigned char* buffer, int *length&#41;

+&#123;	

+	int packetIndex = 0;

+	int retryCount = 0;

+	unsigned char packet&#91;6&#93; = &#123;0,0,0,0,0,0&#125;;

+	

+	while &#40;&#40;packetIndex < 5&#41; && &#40;retryCount < 6&#41;&#41;

+	&#123;

+		/* Read one byte */

+		int readCount = sceIoRead&#40;g_irdafd, &packet&#91;packetIndex&#93;, 1&#41;;

+		if &#40;readCount == 1&#41;

+		&#123;

+			/* We successfully read a byte */

+			if &#40;packetIndex == 0&#41;

+			&#123;

+				/* We're still looking for the packet start */

+				if &#40;packet&#91;packetIndex&#93; == 0xc0&#41;

+				&#123;

+					/* Packet start found, let's increment the packetIndex to continue reading the packet */

+					packetIndex += 1;

+				&#125;

+				else

+				&#123;

+					/* Packet start not found... let's increment the retry count to ensure we don't infinitely loop */

+					retryCount += 1;

+				&#125;

+			&#125;

+			else

+			&#123;

+				/* We're reading the packet body */

+				packetIndex += 1;

+			&#125;

+		&#125;

+		else if &#40;packetIndex == 0&#41;

+		&#123;

+			/* Nothing to read, let's bail */

+			break;

+		&#125;

+	&#125;

+	

+	/* 0x5c is the repeat code... we don't care about the keyboard generated repeats &#40;they're too slow&#41; */

+	if &#40;&#40;packetIndex == 5&#41; && &#40;packet&#91;0&#93; == 0xc0&#41; && &#40;packet&#91;4&#93; == 0xc1&#41; && &#40;packet&#91;1&#93; != 0x5c&#41;&#41;

+	&#123;

+		/* Packet was read completely and appears to be valid */

+		unsigned char keycode = packet&#91;1&#93; & 0x7f;

+		unsigned char keydown = !&#40;packet&#91;1&#93; & 0x80&#41;;

+	

+		if &#40;keydown&#41;

+		&#123;

+			keymap_decode&#40;g_outputmode, stowaway_normal&#91;keycode&#93;, KEY_PRESSED, buffer, length&#41;;

+		&#125;

+		else

+		&#123;

+			keymap_decode&#40;g_outputmode, stowaway_normal&#91;keycode&#93;, KEY_RELEASED, buffer, length&#41;;

+		&#125;

+		

+	    /* resume display */

+	    scePowerTick&#40;0&#41;;

+	    

+	    return 0;

+	&#125;

+	

+	/* Nothing to read, we ran out of retries or the packet is invalid... bail out */

+	return -1;

+&#125;

Index&#58; libpspirkeyb/kbdkeyboards.h
===================================================================
RCS file&#58; /var/cvs/PSPIRKeyB_Lib/libpspirkeyb/kbdkeyboards.h,v
retrieving revision 1.1
diff -u -r1.1 kbdkeyboards.h
--- libpspirkeyb/kbdkeyboards.h	21 Sep 2008 00&#58;16&#58;44 -0000	1.1
+++ libpspirkeyb/kbdkeyboards.h	22 Sep 2008 03&#58;12&#58;39 -0000
@@ -943,4 +943,28 @@
   0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,

 &#125;;

 

-

+/***********************************************************************************

+ *  ThinkOutside Stowaway

+ *

+ *  9600 baud, 8N1

+ *

+ *  Notes&#58;

+ *   The blue function key is treated as "compose" and green as "meta" for use with

+ *   the stowaway.ini keymap.

+ *

+ ***********************************************************************************/

+static unsigned char stowaway_normal&#91;128&#93; = &#123;

+  /* 000 */ 0, 0, 0, KEY_Z, 0, 0, 0, 0, KEY_LEFTMETA, KEY_Q,

+  /* 010 */ KEY_W, KEY_E, KEY_R, KEY_T, KEY_Y, 0,KEY_X, KEY_A, KEY_S, KEY_D,

+  /* 020 */ KEY_F, KEY_G, KEY_H, KEY_SPACE, KEY_CAPSLOCK, 0, KEY_LEFTCTRL, KEY_TAB, 0, 0,

+  /* 030 */ 0, 0, 0, 0, KEY_COMPOSE, KEY_LEFTALT, KEY_RIGHTMETA, 0, 0, 0,

+  /* 040 */ 0, 0, 0, 0, KEY_C, KEY_V, KEY_B, KEY_N, 0, 0,

+  /* 050 */ KEY_BACKSPACE, 0, 0, 0, 0, KEY_SPACE, KEY_MINUS, KEY_EQUAL, KEY_SLASH, 0,

+  /* 060 */ KEY_U, KEY_I, KEY_O, KEY_P, KEY_APOSTROPHE, 0, 0, 0, KEY_J, KEY_K,

+  /* 070 */ KEY_L, KEY_SEMICOLON, KEY_UP, 0, 0, 0, KEY_M, KEY_COMMA, KEY_DOT, 0,

+  /* 080 */ KEY_DELETE, KEY_LEFT, KEY_DOWN, KEY_RIGHT, 0, 0, 0, KEY_ENTER, KEY_LEFTSHIFT, KEY_RIGHTSHIFT,

+  /* 090 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,

+  /* 100 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,

+  /* 110 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,

+  /* 120 */ 0, 0, 0, 0, 0, 0, 0, 0

+&#125;;

Index&#58; libpspirkeyb/keymap.c
===================================================================
RCS file&#58; /var/cvs/PSPIRKeyB_Lib/libpspirkeyb/keymap.c,v
retrieving revision 1.1
diff -u -r1.1 keymap.c
--- libpspirkeyb/keymap.c	21 Sep 2008 00&#58;16&#58;44 -0000	1.1
+++ libpspirkeyb/keymap.c	22 Sep 2008 03&#58;12&#58;39 -0000
@@ -189,7 +189,7 @@
     /* no effective modifiers */

     if&#40; normal == 0 &#41;

         DO_DECODE&#40;MAPTABLE_SECT_NORMAL&#41;;

-    if&#40; shift &#41;

+    if&#40; shift && !compose && !meta &#41;

         DO_DECODE&#40;MAPTABLE_SECT_SHIFT&#41;;

     if&#40; ctrl &#41;

         DO_DECODE&#40;MAPTABLE_SECT_CTRL&#41;;

Index&#58; libpspirkeyb/include/pspirkeyb.h
===================================================================
RCS file&#58; /var/cvs/PSPIRKeyB_Lib/libpspirkeyb/include/pspirkeyb.h,v
retrieving revision 1.1
diff -u -r1.1 pspirkeyb.h
--- libpspirkeyb/include/pspirkeyb.h	21 Sep 2008 00&#58;16&#58;45 -0000	1.1
+++ libpspirkeyb/include/pspirkeyb.h	22 Sep 2008 03&#58;12&#58;39 -0000
@@ -62,7 +62,9 @@
     /** Sprint PCS keyboard */

     PSP_IRKBD_TYPE_SPRINT           = 22,

     /** Palm One Wireless Keyboard */

-    PSP_IRKBD_TYPE_PALM_ONE         = 23

+    PSP_IRKBD_TYPE_PALM_ONE         = 23,

+	/** ThinkOutside StowAway */

+	PSP_IRKBD_TYPE_STOWAWAY         = 24

 &#125;;

 

 /**

Index&#58; asciidemoprx/main.c
===================================================================
RCS file&#58; /var/cvs/PSPIRKeyB_Lib/asciidemoprx/main.c,v
retrieving revision 1.1
diff -u -r1.1 main.c
--- asciidemoprx/main.c	21 Sep 2008 00&#58;16&#58;45 -0000	1.1
+++ asciidemoprx/main.c	22 Sep 2008 03&#58;12&#58;39 -0000
@@ -13,7 +13,6 @@
 #include <pspctrl.h>

 #include <pspdebug.h>

 #include <psppower.h>

-#include <kubridge.h>

 

 #include <stdio.h>

 #include <string.h>

Index&#58; asciidemoprx/Makefile
===================================================================
RCS file&#58; /var/cvs/PSPIRKeyB_Lib/asciidemoprx/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- asciidemoprx/Makefile	21 Sep 2008 00&#58;16&#58;45 -0000	1.1
+++ asciidemoprx/Makefile	22 Sep 2008 03&#58;12&#58;39 -0000
@@ -9,7 +9,7 @@
 LIBDIR = $&#40;PSPDEV&#41;/SDK/lib ../libpspirkeybprx
 LDFLAGS =
 
-LIBS = -lpspkubridge -lpspirkeybprx -lpsppower
+LIBS = -lpspirkeybprx -lpsppower
 
 BUILD_PRX = 1
 PSP_FW_VERSION = 401
Index&#58; libpspirkeyb/config/PSPIRKeyB.INI
===================================================================
RCS file&#58; /var/cvs/PSPIRKeyB_Lib/libpspirkeyb/config/PSPIRKeyB.INI,v
retrieving revision 1.1
diff -u -r1.1 PSPIRKeyB.INI
--- libpspirkeyb/config/PSPIRKeyB.INI	21 Sep 2008 00&#58;16&#58;45 -0000	1.1
+++ libpspirkeyb/config/PSPIRKeyB.INI	22 Sep 2008 03&#58;12&#58;39 -0000
@@ -31,6 +31,7 @@
 #  21 - Hama Palm IR Keyboard

 #  22 - Sprint PDA Keyboard

 #  23 - Palm P10946-P

+#  24 - ThinkOutside StowAway

 #

 #

 #  This is the directory that the  keymaps. It's best not to edit this unless

@@ -53,10 +54,10 @@
 #

 #  Set this value to "0" if you don't want key repeats.

 #

-Delay = 700;

+Delay = 500000;

 #

 #  This is the speed of the repeat. It's best to have a value under 1.

 # 

 #  Set this value to "0" if you don't want key repeats.

 #

-Rate = 70;
\ No newline at end of file
+Rate = 60000;
\ No newline at end of file
Index&#58; pspirkeybprx/Makefile
===================================================================
RCS file&#58; /var/cvs/PSPIRKeyB_Lib/pspirkeybprx/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- pspirkeybprx/Makefile	21 Sep 2008 00&#58;16&#58;45 -0000	1.1
+++ pspirkeybprx/Makefile	22 Sep 2008 03&#58;12&#58;39 -0000
@@ -17,7 +17,7 @@
 
 LIBDIR = ../libpspirkeyb
 
-LIBS = -lpspirkeyb -lpsppower
+LIBS = -lpspirkeyb -lpsppower -lpsprtc
 
 PSPSDK=$&#40;shell psp-config --pspsdk-path&#41;
 include $&#40;PSPSDK&#41;/lib/build.mak
Index&#58; libpspirkeyb/keymap/stowaway.ini
===================================================================
RCS file&#58; libpspirkeyb/keymap/stowaway.ini
diff -N libpspirkeyb/keymap/stowaway.ini
--- /dev/null	1 Jan 1970 00&#58;00&#58;00 -0000
+++ libpspirkeyb/keymap/stowaway.ini	1 Jan 1970 00&#58;00&#58;00 -0000
@@ -0,0 +1,196 @@
+#######################################################################
+#   This mapfile file is part of the PSP IR Keyboard Library
+#   &#40;http&#58;//pspirkeyb.podzone.net&#41;
+#   Copyright &#40;C&#41; 2007 Harald Fielker <[email protected]>
+#
+#   This program can be distributed under the terms of the GNU LGPL.
+#   See the file LICENSE.
+#######################################################################
+
+#######################################################################
+# Map for the ThinkOutside Stowaway IR Keyboard
+#######################################################################
+
+&#91;KEY_Q&#93;
+normal  = 'q';
+shift   = 'Q';
+compose = '1';
+meta    = '!';
+
+&#91;KEY_W&#93;
+normal  = 'w';
+shift   = 'W';
+compose = '2';
+meta    = '@';
+
+&#91;KEY_E&#93;
+normal  = 'e';
+shift   = 'E';
+compose = '3';
+meta    = '#';
+
+&#91;KEY_R&#93;
+normal  = 'r';
+shift   = 'R';
+compose = '4';
+meta    = '$';
+
+&#91;KEY_T&#93;
+normal  = 't';
+shift   = 'T';
+compose = '5';
+meta    = '%';
+
+&#91;KEY_Y&#93;
+normal  = 'y';
+shift   = 'Y';
+compose = '6';
+meta    = '^';
+
+&#91;KEY_U&#93;
+normal  = 'u';
+shift   = 'U';
+compose = '7';
+meta    = '&';
+
+&#91;KEY_I&#93;
+normal  = 'i';
+shift   = 'I';
+compose = '8';
+meta    = '*';
+
+&#91;KEY_O&#93;
+normal  = 'o';
+shift   = 'O';
+compose = '9';
+meta    = '&#40;';
+
+&#91;KEY_P&#93;
+normal  = 'p';
+shift   = 'P';
+compose = '0';
+meta    = '&#41;';
+
+&#91;KEY_MINUS&#93;
+normal  = '-';
+shift   = '_';
+compose = '&#91;';
+meta    = '&#123;';
+
+&#91;KEY_EQUAL&#93;
+normal  = '=';
+shift   = '+';
+compose = '&#93;';
+meta    = '&#125;';
+
+&#91;KEY_A&#93;
+normal  = 'a';
+shift   = 'A';
+
+&#91;KEY_S&#93;
+normal  = 's';
+shift   = 'S';
+
+&#91;KEY_D&#93;
+normal  = 'd';
+shift   = 'D';
+
+&#91;KEY_F&#93;
+normal  = 'f';
+shift   = 'F';
+
+&#91;KEY_G&#93;
+normal  = 'g';
+shift   = 'G';
+
+&#91;KEY_H&#93;
+normal  = 'h';
+shift   = 'H';
+
+&#91;KEY_J&#93;
+normal  = 'j';
+shift   = 'J';
+
+&#91;KEY_K&#93;
+normal  = 'k';
+shift   = 'K';
+
+&#91;KEY_L&#93;
+normal  = 'l';
+shift   = 'L';
+
+&#91;KEY_SEMICOLON&#93;
+normal  = ';';
+shift   = '&#58;';
+
+&#91;KEY_APOSTROPHE&#93;
+normal  = "'";
+shift   = '"';
+compose = '`';
+meta    = '~';
+
+&#91;KEY_Z&#93;
+normal  = 'z';
+shift   = 'Z';
+
+&#91;KEY_X&#93;
+normal  = 'x';
+shift   = 'X';
+
+&#91;KEY_C&#93;
+normal  = 'c';
+shift   = 'C';
+
+&#91;KEY_V&#93;
+normal  = 'v';
+shift   = 'V';
+
+&#91;KEY_B&#93;
+normal  = 'b';
+shift   = 'B';
+
+&#91;KEY_N&#93;
+normal  = 'n';
+shift   = 'N';
+
+&#91;KEY_M&#93;
+normal  = 'm';
+shift   = 'M';
+
+&#91;KEY_COMMA&#93;
+normal  = ',';
+shift   = '<';
+
+&#91;KEY_DOT&#93;
+normal  = '.';
+shift   = '>';
+
+&#91;KEY_UP&#93;
+normal  = '';
+shift   = '?';
+compose = KEY_PAGEUP;
+meta    = KEY_PAGEUP;
+
+&#91;KEY_SLASH&#93;
+normal  = '/';
+compose = '\';
+meta    = '|';
+
+&#91;KEY_LEFT&#93;
+normal  = '';
+compose = KEY_HOME;
+meta    = KEY_HOME;
+
+&#91;KEY_DOWN&#93;
+normal  = '';
+compose = KEY_PAGEDOWN;
+meta    = KEY_PAGEDOWN;
+
+&#91;KEY_RIGHT&#93;
+normal  = '';
+compose = KEY_END;
+meta    = KEY_END;
+
+&#91;KEY_TAB&#93;
+normal  = '';
+compose = KEY_ESC;
angelo
Posts: 168
Joined: Wed Aug 29, 2007 9:34 pm

Post by angelo »

Ooooohhh... who's name is that calling J.F? Yours or mine?

*Passes quickly the ticking time bomb to J.F.*
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

angelo wrote:Ooooohhh... who's name is that calling J.F? Yours or mine?

*Passes quickly the ticking time bomb to J.F.*
No, you're the one claiming to have the latest code. :)
angelo
Posts: 168
Joined: Wed Aug 29, 2007 9:34 pm

Post by angelo »

Sneaky little monkfish you are!

I'll add it to the latest PSPIRKeyB lib when I get a chance Benji. School is no. 1 on my list at the moment.

I haven't coded in weeks!

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

Post by J.F. »

Benji - could you post the diff file(s) in a single archive? Putting diff files into code tags doesn't work most of the time as the whitespace/line endings aren't preserved properly. You'll see posts all over about patches failing when trying to use one posted in code tags. Archiving also gives you a way to verify the file(s) are good.
benji
Posts: 17
Joined: Fri Oct 14, 2005 2:41 pm

Post by benji »

J.F. wrote:Benji - could you post the diff file(s) in a single archive? Putting diff files into code tags doesn't work most of the time as the whitespace/line endings aren't preserved properly. You'll see posts all over about patches failing when trying to use one posted in code tags. Archiving also gives you a way to verify the file(s) are good.
Hey, I understand why the code tag patch is a problem, I however don't understand what you mean by posting it as a single archive?

Thanks,

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

Post by J.F. »

Just put them all (assuming there's more than one) in a zip file, put the zip on a download service, then post the link here rather than the actual diff file(s).
benji
Posts: 17
Joined: Fri Oct 14, 2005 2:41 pm

Post by benji »

k, I wasn't sure if I was missing a forum attachment feature or not.

Here's the zipped up patch: http://www.filefactory.com/file/2975b8/ ... repeat_zip

benji
Post Reply