gnokii-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-56


From: Daniele Forsi
Subject: [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-565-g0a7831d
Date: Mon, 13 Jan 2014 14:50:45 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".

The branch, master has been updated
       via  0a7831d7c4539065387764f4ae29f9a665ab3e7b (commit)
      from  d07017cfd9943f8a0ccb8813d6999000e3fc9f69 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=0a7831d7c4539065387764f4ae29f9a665ab3e7b


commit 0a7831d7c4539065387764f4ae29f9a665ab3e7b
Author: Daniele Forsi <address@hidden>
Date:   Mon Jan 13 15:09:48 2014 +0100

    Add more definitions for keypress emulation

diff --git a/common/phones/nk6510.c b/common/phones/nk6510.c
index f3b76b7..59f4ada 100644
--- a/common/phones/nk6510.c
+++ b/common/phones/nk6510.c
@@ -5279,7 +5279,15 @@ static gn_error NK6510_PressOrReleaseKey_S40_30(gn_data 
*data, struct gn_statema
        case GN_KEY_UP:                 keycode = NK6510_KEY_UP; break;
        case GN_KEY_DOWN:               keycode = NK6510_KEY_DOWN; break;
        case GN_KEY_MENU:               keycode = NK6510_KEY_MENU; break;
-       case GN_KEY_NAMES:              keycode = NK6510_KEY_SELECTRIGHT; break;
+       case GN_KEY_SELECTRIGHT:        keycode = NK6510_KEY_SELECTRIGHT; break;
+       case GN_KEY_OPEN:               keycode = NK6510_KEY_OPEN; break;
+       case GN_KEY_SELECTLEFT:         keycode = NK6510_KEY_SELECTLEFT; break;
+       case GN_KEY_LEFT:               keycode = NK6510_KEY_LEFT; break;
+       case GN_KEY_RIGHT:              keycode = NK6510_KEY_RIGHT; break;
+       case GN_KEY_CAMERA:             keycode = NK6510_KEY_CAMERA; break;
+       case GN_KEY_FWD:                keycode = NK6510_KEY_FWD; break;
+       case GN_KEY_PLAY:               keycode = NK6510_KEY_PLAY; break;
+       case GN_KEY_REW:                keycode = NK6510_KEY_REW; break;
        default:                        error = GN_ERR_NOTSUPPORTED;
        }
        if (error != GN_ERR_NONE)
diff --git a/include/gnokii/common.h b/include/gnokii/common.h
index 69e4b30..fc6bf2f 100644
--- a/include/gnokii/common.h
+++ b/include/gnokii/common.h
@@ -796,8 +796,18 @@ typedef enum {
        GN_KEY_DECREASEVOLUME,
        GN_KEY_UP = 0x17,
        GN_KEY_DOWN,
-       GN_KEY_MENU,
-       GN_KEY_NAMES
+       GN_KEY_MENU,            /* middle soft button on some phones */
+       GN_KEY_SELECTMIDDLE = GN_KEY_MENU,
+       GN_KEY_NAMES,           /* right soft button on some phones */
+       GN_KEY_SELECTRIGHT = GN_KEY_NAMES,
+       GN_KEY_OPEN,            /* slider ("press" to open, "release" to close) 
*/
+       GN_KEY_SELECTLEFT,      /* left soft button */
+       GN_KEY_LEFT,            /* cursor left */
+       GN_KEY_RIGHT,           /* cursor right */
+       GN_KEY_CAMERA,          /* key to activate camera */
+       GN_KEY_FWD,             /* fast forward (skip to next song or tune 
radio up) */
+       GN_KEY_PLAY,            /* play/pause */
+       GN_KEY_REW,             /* rewind (skip to previous song or tune radio 
down) */
 } gn_key_code;
 
 typedef struct {

-----------------------------------------------------------------------

Summary of changes:
 common/phones/nk6510.c  |   10 +++++++++-
 include/gnokii/common.h |   14 ++++++++++++--
 2 files changed, 21 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
libgnokii and core programs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]