List of button activators?

Discussion in '3DS - Homebrew Development and Emulators' started by DarkFlare69, Jan 10, 2015.

  1. DarkFlare69
    OP

    DarkFlare69 GBAtemp Psycho!

    Member
    4,816
    2,663
    Dec 8, 2014
    United States
    Ohio
    So for homebrew applications, can someone post a list of all the activators? Like select, start, a, b, x, y, r, l, touch screen? I think they go something like
    Code:
    u32 (kDown)
    
    Something like that. Please help, I want to put activators on certain parts of code.
     
  2. Slushie3DS

    Slushie3DS Cold Beverage Lover

    Member
    707
    295
    Jan 9, 2015
    United States
    Following for info.

    I'm thinking about porting Space Invaders, and I could only find documentation of about six inside of the template sauce. It points to a header named 3ds, which I would assume has the others, but doesn't seem to be included with the template. Strange, I know.

    [​IMG]
     
  3. Technicmaster0

    Technicmaster0 GBAtemp Psycho!

    Member
    3,489
    745
    Oct 22, 2011
    Gambia, The
  4. Hiccup

    Hiccup GBAtemp Advanced Fan

    Member
    915
    276
    Nov 21, 2009
    Is there no debug button, like on the NDS?

    Even if it only works in DS mode?
     
  5. Rinnegatamante

    Rinnegatamante GBAtemp Psycho!

    Member
    3,127
    3,274
    Nov 24, 2014
    Italy
    Bologna
    With "activators" you mean key definitions?

    Code:
    typedef enum
    {
    KEY_A = BIT(0),
    KEY_B = BIT(1),
    KEY_SELECT = BIT(2),
    KEY_START = BIT(3),
    KEY_DRIGHT = BIT(4),
    KEY_DLEFT = BIT(5),
    KEY_DUP = BIT(6),
    KEY_DDOWN = BIT(7),
    KEY_R = BIT(8),
    KEY_L = BIT(9),
    KEY_X = BIT(10),
    KEY_Y = BIT(11),
    KEY_ZL = BIT(14), // (new 3DS only)
    KEY_ZR = BIT(15), // (new 3DS only)
    KEY_TOUCH = BIT(20), // Not actually provided by HID
    KEY_CSTICK_RIGHT = BIT(24), // c-stick (new 3DS only)
    KEY_CSTICK_LEFT = BIT(25), // c-stick (new 3DS only)
    KEY_CSTICK_UP = BIT(26), // c-stick (new 3DS only)
    KEY_CSTICK_DOWN = BIT(27), // c-stick (new 3DS only)
    KEY_CPAD_RIGHT = BIT(28), // circle pad
    KEY_CPAD_LEFT = BIT(29), // circle pad
    KEY_CPAD_UP = BIT(30), // circle pad
    KEY_CPAD_DOWN = BIT(31), // circle pad
    // Generic catch-all directions
    KEY_UP = KEY_DUP | KEY_CPAD_UP,
    KEY_DOWN = KEY_DDOWN | KEY_CPAD_DOWN,
    KEY_LEFT = KEY_DLEFT | KEY_CPAD_LEFT,
    KEY_RIGHT = KEY_DRIGHT | KEY_CPAD_RIGHT,
    } PAD_KEY;