mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
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:
parent
b503b1cdc6
commit
af603abfff
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue