device registry and hid usages

Hi everyone

I'm a totally hobbyist and sorry for my questions that might be very amateurish.

  1. Now I know how to use my mega as a HID keyboard or a HID mouse, but is it possible to use as keyboard and mouse at the same time?

  2. I want to use my mega in android to send HID commands to my cell phone. I think I can start with adding physical button to my cell phone. I checked online and find this: Dispositivos de teclado  |  Android Open Source Project

0x07 0x00ed		0x0073	KEY_VOLUMEUP	1.6	0x0018	KEYCODE_VOLUME_UP
0x07 0x00ee		0x0072	KEY_VOLUMEDOWN	1.6	0x0019	KEYCODE_VOLUME_DOWN
0x07 0x00ef		0x0071	KEY_MUTE	3.0	0x00a4	KEYCODE_VOLUME_MUTE

So I suppose if I can send 0x07 0x00ed to my cell phone I can turn up the volume, is it true? If it's true, how to do it?

Thanks

Mega is used mostly as a synonym Mega2560 here, which I can not use to simulate an USB-HID,
if you got that working, I would be eager to learn how to.

On the Leonardo (for one) it should be possible to use mouse and keyboard at the same time,
but I never tried it myself.

Whether your Android device supports USB-HID devices directly?
I don't know, it could work.

Whether you already have an application that transfers keys from windows or mac
to an Android device and generate key-events there?
I don't know, but I doubt it.