Re: [android-porting] Extending KeyEvent (or another way of adding new KeyCodes)

2010-03-26 Thread Ashwin Bihari
Dianne, Is there really value in adding keycodes that only have any bearing/use for certain devices? if that is the case, it might be better for Google to define a dozen or so USER buttons, that can be used by any application. Either way, can you suggest a method of adding keycodes that doesn't r

Re: [android-porting] Extending KeyEvent (or another way of adding new KeyCodes)

2010-03-25 Thread Dianne Hackborn
We request that you contribute a patch for any new keycodes you would like, so that we can maintain a single, consistent list of keycodes for the platform. On Thu, Mar 25, 2010 at 12:06 PM, Ashwin Bihari wrote: > I've got a device that has 4 buttons that are indeed by an application > that will

[android-porting] Extending KeyEvent (or another way of adding new KeyCodes)

2010-03-25 Thread Ashwin Bihari
I've got a device that has 4 buttons that are indeed by an application that will run on this device. Initially I went the route of modifying the KeyEvent.java file and adding new KEYCODE entries for these buttons. That approach worked but required recompiling a custom SDK that included these define