D'pad is disabled in the emulator

I am using android sdk 4.0.3, I created an emulator of this. Now I have a problem that the emulator shows the disabled DPAD buttons. I configured the hardware keyboard and displayed the skin with the settings of the buttons in the configuration.

So, I just want to enable the Dpad buttons on the emulator

+22
android eclipse android-emulator avd d-pad
Jan 28 '13 at 11:41
source share
6 answers

Each emulated device is based on a more or less real device that you have chosen as a β€œ4.0” WVGA (480x800: hdpi). "This only applies to the resolution of your emulated device and its hardware functions. Avd-manager enter the tab that shows the device definitions. There you can edit the selected device and you will find the dpad input file.

+26
Feb 12 '13 at 17:38
source share

It sounds crazy, but it worked for me:

  • Launch the new Android Virtual Device Manager (AVD) emulator.
    Note: "DO NOT START THE DEVICE".
  • Locate the configuration file, for example: ~/.android/avd/XXXX.avd/config.ini
    Note that this directory has only one INI file.
  • Change config.ini :
    change hw.dPad=no to hw.dPad=yes
  • AVD Manager will show dPad=no when you click "Details". It does not appear to light up until the virtual device is started. (Awkward? Yes)
  • Launch the device. He must show DPAD without complaining that it does not exist.
  • The DETAILS button in AVD Manager should also show hw.dPad=yes

I came across this while trying to recreate the demo version of "Snake". He could not start by asking to press the UP key - and the pad did not answer! After receiving the DPAD set, the demo can be controlled using the pad.

This seems to be a bug in AVD Manager. If you set dPad to yes, you can set it to no through AVD Manager. But changing β€œno” to β€œyes” requires the solution described above.

+13
Jun 14 '13 at 22:38
source share

There is a configuration file in the virtual device folder, like my Mac OS X and VM (A17):

~/.android/avd/A17.avd/config.ini

change

 hw.dPad=no 

to

 hw.dPad=yes 
+7
May 21 '13 at 10:29
source share

I found this solution in another file. I am using version version SDK version 20.

  • Create a new AVD from your AVD manager.
  • There is no way to enable DPAD in the AVD manager. I tried even by clicking Edit .
  • Go to the folder C:\Users\%USERNAME%\.android\avd\YOUR_AVD_NAME
  • Open the hardware-qemu.ini file . Here you will get all hw configuration details.
  • There you will find hw.dPad = no ; Change it to hw.dPad = yes and save the file
  • Reboot AVD and Voila !!! DPAD is now enabled in the emulator.
+5
May 24 '14 at 7:23
source share

Change config.ini as

 hw.dPad=no --> hw.dPad=yes 

. Keyboard cloning device definitions

 Enable Input -> Keyboard. 

For your previous AVD, so you will no longer encounter this problem in the future.

+2
Jul 20 '13 at 13:59 on
source share

You need to uncheck the current hardware keyboard. Then it will be turned on. So the option would be

 Display a skin with hardware controls - true Hardware keyboard present - false 
-one
Feb 04 '13 at 11:09
source share



All Articles