×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Oct 2007
    Location
    London
    Posts
    54

    Question List of Codes for Buttons

    Can't seem to find the list of codes for different buttons in the SDK documentation, can anyone point me in the right direction?

    switch ( aKeyEvent.iCode )
    {
    case '1':
    { etc....


    '1' is for the button 1 on the numpad on the phone.
    '2' is for the button 2 on the numpad on the phone.
    '*' is NOT for the button * on the numpad on the phone,
    therefore I need a list to figure this out.

    Any help is much appreciated ;)

  2. #2
    Super Contributor
    Join Date
    Jul 2007
    Posts
    596

    Re: List of Codes for Buttons

    Quote Originally Posted by skela View Post
    Can't seem to find the list of codes for different buttons in the SDK documentation, can anyone point me in the right direction?

    switch ( aKeyEvent.iCode )
    {
    case '1':
    { etc....


    '1' is for the button 1 on the numpad on the phone.
    '2' is for the button 2 on the numpad on the phone.
    '*' is NOT for the button * on the numpad on the phone,
    therefore I need a list to figure this out.

    Any help is much appreciated ;)
    here below i am giving some scan codes
    check these on your device

    switch (keyEvent.iScanCode)
    {
    // Scan codes for numeric keys 0 thru 9
    case 48: // key '0' / 'M'
    case 49: // key '1' / 'R'
    case 50: // key '2' / 'T'
    case 51: // key '3' / 'Y'
    case 52: // key '4' / 'F'
    case 53: // key '5' / 'G'
    case 54: // key '6' / 'H'
    case 55: // key '7' / 'V'
    case 56: // key '8' / 'B'
    case 57: // key '9' / 'N'
    case 81: // key 'Q'
    case 87: // key 'W'
    case 69: // key 'E'
    case 65: // key 'A'
    case 83: // key 'S'
    case 68: // key 'D'
    case 90: // key 'Z'
    case 88: // key 'X'
    case 67: // key 'C'
    case 73: // key 'I'
    case 79: // key 'O'
    case 80: // key 'P'
    case 74: // key 'J'
    case 75: // key 'K'
    case 76: // key 'L'
    case 77: // key 'M'
    case 42: // key 'U' / '*'
    case 127: // key 'J' / '#'


    Thanks

  3. #3
    Super Contributor
    Join Date
    Jul 2006
    Location
    Oulu, Finland.
    Posts
    1,174

    Re: List of Codes for Buttons

    Actually symbian os maps keys from the hardware to specfic keys on a given device, generic device specific keys are defined in e32keys.h

Similar Threads

  1. 6680 and bluetooth service profiles
    By ceruault in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-10-08, 22:24
  2. codes
    By xerxer in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2002-06-27, 14:30
  3. codes
    By xerxer in forum Mobile Java General
    Replies: 0
    Last Post: 2002-06-27, 14:29
  4. codes
    By xerxer in forum Nokia M2M
    Replies: 0
    Last Post: 2002-06-27, 14:28

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×