Now any valid game key will trigger capture

git-svn-id: https://zxing.googlecode.com/svn/trunk@156 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2008-01-30 18:57:22 +00:00
parent b503b1cdc6
commit af603abfff

View file

@ -42,8 +42,8 @@ final class VideoCanvas extends Canvas implements CommandListener {
}
protected void keyPressed(int keyCode) {
// Use the "FIRE" key as a "take snapshot" key
if (FIRE == getGameAction(keyCode)) {
// Any valid game key will trigger a capture
if (getGameAction(keyCode) != 0) {
SnapshotThread.startThread(zXingMIDlet);
}
}