Nope! Not true. It should remain compatible down to 2.2 with just the one
file. I'll test it today on 2.2 to confirm.

--Jamie Halpern
On Mar 21, 2013 3:02 AM, "Henrik Rydgård" <notifications@github.com> wrote:

> In android/src/com/henrikrydgard/libnative/NativeActivity.java:
>
> > +		case KeyEvent.KEYCODE_DPAD_RIGHT:
> > +			// Joysticks are supported in Honeycomb MR1 and later via the onGenericMotionEvent method.
> > +			if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR1 && event.getSource() == InputDevice.SOURCE_JOYSTICK) {
> > +				return false;
> > +			}
> > +		default:
> > +			// send the rest of the keys through.
> > +			// TODO: get rid of the three special cases above by adjusting the native side of the code.
> > +			Log.d("JAMIE", "Key code: " + keyCode + ", KeyEvent: " + event);
> > +			NativeApp.keyDown(keyCode);
> > +			return true;
> > +		}
> > +	}
> > +
> > +	@Override
> > +	@TargetApi(12)
>
> http://tools.android.com/recent/lintapicheck
>
> Appears it's just a lint check. That means that we must pull this code out
> into its own class somehow, and only load that on 12+. Nasty.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/hrydgard/native/pull/54/files#r3465869>
> .
>