papyjayan / imame4all

Automatically exported from code.google.com/p/imame4all
0 stars 0 forks source link

keyboard fault on asus transformer #39

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Sorry for all the bug reports

I have defined button x and button b to the z and x keys on the docking station 
on the asus transformer. They appear in the definitions fine but in game they 
do no work at all. It seems any keys defined to letters or numbers do not work 

Original issue reported on code.google.com by tanya.pe...@googlemail.com on 11 Sep 2011 at 11:43

GoogleCodeExporter commented 8 years ago
Don't worry.. I want to do the best mame possible..

I'll take a look with my bt keyboard this evening...

Original comment by seleuco....@gmail.com on 11 Sep 2011 at 11:58

GoogleCodeExporter commented 8 years ago
if it helps I have tried it with a USB keyboard connected and it does exactly 
the same, the key definitions set up and show properly but do not work in the 
emulator

Original comment by tanya.pe...@googlemail.com on 11 Sep 2011 at 5:38

GoogleCodeExporter commented 8 years ago
it seems it is related to IME selected.. i have the same problem with my bt 
keyboard if i select samsung IME... but works ok if i select android keyboard.

-----

It seems if I change the IME to anything but the ASUS Keyboard one then 
everything is fine. Consistently though if I change to the IME type of the ASUS 
Transformer dock this problem occurs. Breaks games that rely on key down and up 
event coming in properly.

On Jul 25, 11:48 pm, Halsafar <shin...@gmail.com> wrote:

I am finding whenever I press a key down on a keyboard it immediately fires 
both the down and up events.  It seems with the virtual keyboard or a real 
keyboard in the case of the EEE Transformer Pad this is true.  Is this the 
expected behavior or am I doing something wrong?  I have tried with both the 
dispatch and separate onKeyDown/onKeyUp events.  Both give same results.

Note this is not true for special keys.  CTRL for example fires properly and 
its repeat count properly goes up as you hold it.  Where if you hold a regular 
key like "A" it fires up/down events simultaneously and the repeat count stays 
at -1.

     public boolean dispatchKeyEvent(KeyEvent event)      {

          if (event.getAction() == KeyEvent.ACTION_DOWN)           {                  Log.d(LOG_TAG, "onKeyDown(" + event.getKeyCode() + ", " + event + ")");

             return true;           }           else if (event.getAction() == KeyEvent.ACTION_UP)           {                   Log.d(LOG_TAG, "onKeyUp(" + event.getKeyCode() + ", " + event + ")");

              return true;           }

          return super.dispatchKeyEvent(event);      }

-- You received this message because you are subscribed to the Google Groups 
"Android Developers" group. To post to this group, send email to 
andr...@googlegroups.com To unsubscribe from this group, send email to 
android-developers+unsu...@googlegroups.com For more options, visit this group 
at http://groups.google.com/group/android-developers?hl=en 

Original comment by seleuco....@gmail.com on 12 Sep 2011 at 12:09