GamePad on Leonardo

I am using Arduino Leonardo with 1sheeld to build a gamepad on the phone.

I am planning add a function for all keypad buttons

UP, down, left, right, orange, red, blue and green.

From where can I get the keypad codes for different pressed buttons?

This is what I have so far:

#include <OneSheeld.h>

void setup() 
{
  OneSheeld.begin();
  Serial.begin(9600);
  Keyboard.begin();
}


void loop() 
{
  if (GamePad.isUpPressed())
  {Keyboard.press(0xDA);}
  else
  {Keyboard.release(0xDA);}
  
  
 if(GamePad.isDownPressed())
  {Keyboard.press(0xD9);}
  else
  {Keyboard.release(0xD9);}

if (GamePad.isOrangePressed())
   {Keyboard.press(0xD8);}
  else{Keyboard.release(0xD8);}

 if (GamePad.isRedPressed())
    {Keyboard.press(0xD7);}
    else
    {Keyboard.release(0xD7);}

}/code]

From where can I get the keypad codes for different pressed buttons?

WalMart? When the f**k are you going to get around to posting a link to the damned shield and library you are using?

I don’t understand what’s the problem with you

PaulS:
WalMart? When the f**k are you going to get around to posting a link to the damned shield and library you are using?

Some enquires here regarding the gamepad sheild

I need the codes for the gamepad buttons, like the ones listed below:

UpPressed = 0xDA DownPressed = 0xD9 OrangePressed = 0xD8 RedPressed = 0xD7 LeftPressed = ? RightPressed = ? GreenPressed = ? BluePressed = ?

I need the codes for the gamepad buttons, like the ones listed below:

Find them yourself. We have no idea what shield you are talking about.