Jeck - Keypad and deck editor fixes.

* Fixed a call to profileFile() in deck editor that was using the wrong form.
 * Spacebar works, keypad now does smart capitalization (switches to lower case on second letter)
This commit is contained in:
wagic.jeck
2009-09-23 09:45:58 +00:00
parent 7577a588ec
commit e2e92f58af
3 changed files with 83 additions and 72 deletions

View File

@@ -145,6 +145,15 @@ void SimplePad::pressKey(unsigned char key){
cursor++;
buffer.insert(cursor,input);
//Auto swap capitalization
if(bCapslock && buffer.size() == 1)
bCapslock = !bCapslock;
}
else if(key == KPD_SPACE){
if(cursor < buffer.size())
cursor++;
buffer.insert(cursor," ");
}
else if(key == KPD_CAPS)
bCapslock = !bCapslock;