/*****************************************************************************/
/* keymap data for Danzeff keyboard                                          */
/*                                                                           */
/* This is what you need to press for each printable ascii char.             */
/*****************************************************************************/
#include <pspctrl.h>
#include "keymap.h"
														
CHARMAP charmap[] =
{																												
	{ CENTER, CENTER, 0, 0, PSP_CTRL_CROSS   },		// 32 space
	{ RIGHT,  TOP,    0, 0, PSP_CTRL_TRIANGLE},		//    !
	{ RIGHT,  CENTER, 0, 1, PSP_CTRL_TRIANGLE},		// 34	"
	{ LEFT,   BOTTOM, 1, 1, PSP_CTRL_CIRCLE  },   //		#
	{ CENTER, BOTTOM, 1, 1, PSP_CTRL_SQUARE  },		// 36	$				
	{ CENTER, BOTTOM, 1, 1, PSP_CTRL_CIRCLE  },   //		%				
	{ RIGHT,  BOTTOM, 1, 1, PSP_CTRL_CIRCLE  },		// 38	&				
	{ CENTER, TOP,    1, 1, PSP_CTRL_CROSS   },   //		'
	{ LEFT,   BOTTOM, 0, 0, PSP_CTRL_TRIANGLE},		// 40	(
	{ RIGHT,  BOTTOM, 0, 0, PSP_CTRL_TRIANGLE},   //		)
	{ RIGHT,  TOP,    0, 1, PSP_CTRL_TRIANGLE},		// 42	*
	{ RIGHT,  CENTER, 1, 1, PSP_CTRL_TRIANGLE},   //		+				
	{ LEFT,   TOP,    0, 0, PSP_CTRL_TRIANGLE},		// 44	,
	{ LEFT,   CENTER, 0, 0, PSP_CTRL_TRIANGLE},   //		-
	{ CENTER, TOP,    0, 0, PSP_CTRL_TRIANGLE},		// 46	.
	{ RIGHT,  BOTTOM, 0, 1, PSP_CTRL_TRIANGLE},   //		/
	{ RIGHT,  BOTTOM, 1, 0, PSP_CTRL_CROSS   },		// 48	0
	{ LEFT,   TOP,    1, 0, PSP_CTRL_CIRCLE  },   //		1
	{ CENTER, TOP,    1, 0, PSP_CTRL_CIRCLE  },		// 50	2
	{ RIGHT,  TOP,    1, 0, PSP_CTRL_CIRCLE  },   //		3
	{ LEFT,   CENTER, 1, 0, PSP_CTRL_CIRCLE  },		// 52	4
	{ CENTER, CENTER, 1, 0, PSP_CTRL_CIRCLE  },   //		5
	{ RIGHT,  CENTER, 1, 0, PSP_CTRL_CIRCLE  },		// 54	6
	{ LEFT,   BOTTOM, 1, 0, PSP_CTRL_CIRCLE  },   //		7
	{ CENTER, BOTTOM, 1, 0, PSP_CTRL_CIRCLE  },		// 56	8
	{ RIGHT,  BOTTOM, 1, 0, PSP_CTRL_CIRCLE  },   //		9
	{ CENTER, BOTTOM, 0, 0, PSP_CTRL_TRIANGLE},		// 58	:
	{ CENTER, BOTTOM, 0, 1, PSP_CTRL_TRIANGLE},   //		;
	{ CENTER, TOP,    1, 1, PSP_CTRL_SQUARE  },		// 60	<				
	{ LEFT,   BOTTOM, 0, 1, PSP_CTRL_TRIANGLE},   //		=
	{ CENTER, TOP,    1, 1, PSP_CTRL_CIRCLE  },		// 62	>				
	{ RIGHT,  CENTER, 0, 0, PSP_CTRL_TRIANGLE},   //		?
	{ CENTER, TOP,    0, 1, PSP_CTRL_TRIANGLE},		// 64	@
	{ LEFT,   TOP,    0, 1, PSP_CTRL_SQUARE  },   //		A
	{ LEFT,   TOP,    0, 1, PSP_CTRL_CROSS   },		// 66	B
	{ LEFT,   TOP,    0, 1, PSP_CTRL_CIRCLE  },   //		C
	{ CENTER, TOP,    0, 1, PSP_CTRL_SQUARE  },		// 68	D
	{ CENTER, TOP,    0, 1, PSP_CTRL_CROSS   },   //		E
	{ CENTER, TOP,    0, 1, PSP_CTRL_CIRCLE  },		// 70	F
	{ RIGHT,  TOP,    0, 1, PSP_CTRL_SQUARE  },   //		G
	{ RIGHT,  TOP,    0, 1, PSP_CTRL_CROSS   },		// 72	H
	{ RIGHT,  TOP,    0, 1, PSP_CTRL_CIRCLE  },   //		I
	{ LEFT,   CENTER, 0, 1, PSP_CTRL_SQUARE  },		// 74	J
	{ LEFT,   CENTER, 0, 1, PSP_CTRL_CROSS   },   //		K
	{ LEFT,   CENTER, 0, 1, PSP_CTRL_CIRCLE  },		// 76	L
	{ CENTER, CENTER, 0, 1, PSP_CTRL_SQUARE  },   //		M
	{ CENTER, CENTER, 0, 1, PSP_CTRL_CIRCLE  },		// 78	N
	{ RIGHT,  CENTER, 0, 1, PSP_CTRL_SQUARE  },   //		O
	{ RIGHT,  CENTER, 0, 1, PSP_CTRL_CROSS   },		// 80	P
	{ RIGHT,  CENTER, 0, 1, PSP_CTRL_CIRCLE  },   //		Q
	{ LEFT,   BOTTOM, 0, 1, PSP_CTRL_SQUARE  },		// 82	R
	{ LEFT,   BOTTOM, 0, 1, PSP_CTRL_CROSS   },   //		S
	{ LEFT,   BOTTOM, 0, 1, PSP_CTRL_CIRCLE  },		// 84	T
	{ CENTER, BOTTOM, 0, 1, PSP_CTRL_SQUARE  },   //		U
	{ CENTER, BOTTOM, 0, 1, PSP_CTRL_CROSS   },		// 86	V
	{ CENTER, BOTTOM, 0, 1, PSP_CTRL_CIRCLE  },   //		W
	{ RIGHT,  BOTTOM, 0, 1, PSP_CTRL_SQUARE  },		// 88	X
	{ RIGHT,  BOTTOM, 0, 1, PSP_CTRL_CROSS   },   //		Y
	{ RIGHT,  BOTTOM, 0, 1, PSP_CTRL_CIRCLE  },		// 90	Z
	{ RIGHT,  TOP,    1, 1, PSP_CTRL_SQUARE  },   //		[					
	{ RIGHT,  CENTER, 1, 1, PSP_CTRL_SQUARE  },		// 92	BACKSLASH	
	{ RIGHT,  TOP,    1, 1, PSP_CTRL_CIRCLE  },   //		]					
	{ LEFT,   TOP,    0, 1, PSP_CTRL_TRIANGLE},		// 94	^
	{ LEFT,   CENTER, 0, 1, PSP_CTRL_TRIANGLE},   //		_
	{ CENTER, BOTTOM, 1, 1, PSP_CTRL_CROSS   },		// 96	`
	{ LEFT,   TOP,    0, 0, PSP_CTRL_SQUARE  },   //		a
	{ LEFT,   TOP,    0, 0, PSP_CTRL_CROSS   },		// 98	b
	{ LEFT,   TOP,    0, 0, PSP_CTRL_CIRCLE  },   //		c
	{ CENTER, TOP,    0, 0, PSP_CTRL_SQUARE  },		//100	d
	{ CENTER, TOP,    0, 0, PSP_CTRL_CROSS   },   //		e
	{ CENTER, TOP,    0, 0, PSP_CTRL_CIRCLE  },		//102	f
	{ RIGHT,  TOP,    0, 0, PSP_CTRL_SQUARE  },   //		g
	{ RIGHT,  TOP,    0, 0, PSP_CTRL_CROSS   },		//104	h
	{ RIGHT,  TOP,    0, 0, PSP_CTRL_CIRCLE  },   //		i
	{ LEFT,   CENTER, 0, 0, PSP_CTRL_SQUARE  },		//106	j
	{ LEFT,   CENTER, 0, 0, PSP_CTRL_CROSS   },   //		k
	{ LEFT,   CENTER, 0, 0, PSP_CTRL_CIRCLE  },		//108	l
	{ CENTER, CENTER, 0, 0, PSP_CTRL_SQUARE  },   //		m
	{ CENTER, CENTER, 0, 0, PSP_CTRL_CIRCLE  },		//110	n
	{ RIGHT,  CENTER, 0, 0, PSP_CTRL_SQUARE  },   //		o
	{ RIGHT,  CENTER, 0, 0, PSP_CTRL_CROSS   },		//112	p
	{ RIGHT,  CENTER, 0, 0, PSP_CTRL_CIRCLE  },   //		q
	{ LEFT,   BOTTOM, 0, 0, PSP_CTRL_SQUARE  },		//114	r
	{ LEFT,   BOTTOM, 0, 0, PSP_CTRL_CROSS   },   //		s
	{ LEFT,   BOTTOM, 0, 0, PSP_CTRL_CIRCLE  },		//116	t
	{ CENTER, BOTTOM, 0, 0, PSP_CTRL_SQUARE  },   //		u
	{ CENTER, BOTTOM, 0, 0, PSP_CTRL_CROSS   },		//118	v
	{ CENTER, BOTTOM, 0, 0, PSP_CTRL_CIRCLE  },   //		w
	{ RIGHT,  BOTTOM, 0, 0, PSP_CTRL_SQUARE  },		//120	x
	{ RIGHT,  BOTTOM, 0, 0, PSP_CTRL_CROSS   },   //		y
	{ RIGHT,  BOTTOM, 0, 0, PSP_CTRL_CIRCLE  },		//122	z
	{ LEFT,   CENTER, 1, 1, PSP_CTRL_SQUARE  },   //		{
	{ RIGHT,  BOTTOM, 1, 1, PSP_CTRL_CROSS   },		//124	|
	{ LEFT,   CENTER, 1, 1, PSP_CTRL_CIRCLE  },   //		}
	{ CENTER, BOTTOM, 1, 1, PSP_CTRL_TRIANGLE},		//126	~
};


