Danzeff 1.0 for PSP Lua Player
==============================

=== for Dev ==========================

You can include this script in all your applications

First include in your application directory:
danzeff.lua
the danzeff directory containing all keyboard pictures

Code Usage:
-----------

First at the beginning of the your main script:
dofile("danzeff.lua")   -- This will include the danzeff.lua script in your application

To initalize your keyboard variable with the Danzeff class: (you can put what you want as keyboard name, here I used "mykeyboard")
This must be done once per application
mykeyboard = Danzeff:New()

To initialize the keyboard and display it on the screen: x represent the x position of the keyboard on the screen, y the y position
mykeyboard:Init(x, y)

To read the input from the keyboard: newchar if the variable where you want to store the value (it is an integer), pad is your Controls.read() variable
newchar = mykeyboard:Input(pad)

To display the keyboard
mykeyboard:Display()

Returned values are:
--------------------

0: No characters or commands have been pressed (means no input or L, R, or Analog pad was used)
Left: 1
Right: 2
Up: 8 (backspace)
Down: 10 ("\n")
Select: 3
Start: 4
"del": 9 (delete) 

=== Usage ============================

The danzeff keyboard is an OSK, mainly controlled by the analog stick.

Use the analog stick to select which square to chose from, and then press the button (X O [] /\) in the direction of the letter you want to input.

To switch into numbers mode tap the L Shoulder.
To get capital Letters hold the R shoulder while in letters input.
To get a complete set of extra characters, hold R shoulder while in numbers mode.

Other special keys:
Digital down  -> enter
Digital up    -> backspace
Digital left  -> move left
Digital right -> move right
Select        -> up to you
Start         -> up to you

Please note the difference between backspace and delete.

=== Acknowledgements =================

Shine and Nevyn, for making Lua Player.
Danzel for creating the OSK and allowing me to adapt it for LUA
PS2DEV.org, for their great forums and SDK.
DCemu for the forums and news
Everyone who contributes to the PSP homebrew scene.

=== Terms of Use =====================

The danzeff application is provided on an "as is" basis.
No merchantability, warranty or fitness is implied.
Although this application has been tested internally, 
there is no guarantee that this software is safe or sane to use. 
Any use of this software is at your own risk. 
You may not use this software if you do not agree to these terms.

=== Copying ==========================

This program is freeware.
You can distributed it freely if this file is part of the distribution.
You are not allowed to put this application in a commercial compilation of application 
or any commercial product without my written acceptance.

=== Contact ==========================

For any comments, suggestions, etc. feel free to contact me at:

cancangm (at) gmail (dot) com

======================================