From 6560cf39bb4ba444592ee19baa52af741cdede24 Mon Sep 17 00:00:00 2001 From: Steve Slaven Date: Tue, 4 Jan 2011 15:14:10 -0800 Subject: Added keyid support 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(); } } -- cgit v0.10.2