diff options
author | Steve Slaven <bpk@hoopajoo.net> | 2011-01-04 23:14:10 (GMT) |
---|---|---|
committer | Steve Slaven <bpk@hoopajoo.net> | 2011-01-04 23:14:10 (GMT) |
commit | 6560cf39bb4ba444592ee19baa52af741cdede24 (patch) | |
tree | c95b714286ec2070aaf510ab5f7adfde2fa981b8 | |
parent | 27e58b98fa26d9f9986d9421bec61e0eb837fc07 (diff) | |
download | SoftKeys-6560cf39bb4ba444592ee19baa52af741cdede24.zip SoftKeys-6560cf39bb4ba444592ee19baa52af741cdede24.tar.gz SoftKeys-6560cf39bb4ba444592ee19baa52af741cdede24.tar.bz2 |
Added keyid support
-rw-r--r-- | src/net/hoopajoo/android/SoftKeys/SendInput.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/hoopajoo/android/SoftKeys/SendInput.java b/src/net/hoopajoo/android/SoftKeys/SendInput.java index 9037e82..9e962ad 100644 --- a/src/net/hoopajoo/android/SoftKeys/SendInput.java +++ b/src/net/hoopajoo/android/SoftKeys/SendInput.java @@ -99,10 +99,13 @@ public class SendInput extends Activity { keyid = mKeymap.get( key ); } } + }else if( e.getInt( "keyid", 0 ) != 0 ) { + keyid = e.getInt( "keyid", 0 ); } ((Globals)getApplication()).sendKeys( new int[] { keyid } ); - // todo: make me a broadcast receiver + // todo: make me a broadcast receiver.. or maybe this should be removed all together? + // any good reasons to allow other apps to call hw keys? this.finish(); } } |