Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: m-labs/mtk
base: 7ce0056
...
head fork: m-labs/mtk
compare: 86f1254
  • 3 commits
  • 13 files changed
  • 0 commit comments
  • 2 contributors
View
30 include/ascii_keycodes.h → include/mtkasciikeycodes.h
@@ -8,6 +8,9 @@
#ifndef _MTK_ASCII_KEYCODES_H_
#define _MTK_ASCII_KEYCODES_H_
+#define MTK_KEY_ENTER 10
+#define MTK_KEY_SPACE 32
+
#define MTK_KEY_0 48
#define MTK_KEY_1 49
#define MTK_KEY_2 50
@@ -46,34 +49,27 @@
#define MTK_KEY_Y 121 /* 'y' */
#define MTK_KEY_Z 122 /* 'z' */
-#define MTK_KEY_ENTER 10
-#define MTK_KEY_SPACE 32
-
-#define MTK_KEY_DEG 167 /* '°' */
+/* German keyboard */
#define MTK_KEY_PAR 21 /* '§' */
-#define MTK_KEY_ET 225 /* 'ß' */
#define MTK_KEY_UE 129 /* 'ü' */
-#define MTK_KEY_OE 148 /* 'ö' */
#define MTK_KEY_AE 132 /* 'ä' */
+#define MTK_KEY_UAE 142 /* 'Ä' */
+#define MTK_KEY_OE 148 /* 'ö' */
#define MTK_KEY_UUE 154 /* 'Ü' */
#define MTK_KEY_UOE 153 /* 'Ö' */
-#define MTK_KEY_UAE 142 /* 'Ä' */
+#define MTK_KEY_ET 225 /* 'ß' */
#define MTK_KEY_MU 230 /* 'µ' */
#define MTK_KEY_DI 246 /* '÷' */
+#define MTK_KEY_DEG 248 /* '°' */
#define MTK_KEY_S2 253 /* '²' */
+/* French keyboard */
#define MTK_KEY_EA 130 /* 'é' */
-#define MTK_KEY_UEA 144 /* 'É' */
-#define MTK_KEY_DR 175 /* '»' */
-#define MTK_KEY_DL 174 /* '«' */
-#define MTK_KEY_PM 241 /* '±' */
-#define MTK_KEY_SU 15 /* '☼' */
-#define MTK_KEY_AG6 170 /* '¬' */
-#define MTK_KEY_CT 155 /* '¢' */
+#define MTK_KEY_AG 133 /* 'à' */
+#define MTK_KEY_EG 138 /* 'è' */
+#define MTK_KEY_CC 135 /* 'ç' */
+#define MTK_KEY_UG 151 /* 'ù' */
#define MTK_KEY_PD 156 /* '£' */
-#define MTK_KEY_HF 171 /* '½' */
-#define MTK_KEY_QT 172 /* '¼' */
-#define MTK_KEY_PS 20 /* '¶' */
#define MTK_KEY_ASCII_MAX 256
View
2  include/keycodes.h → include/mtkeycodes.h
@@ -18,7 +18,7 @@
#ifndef _MTK_KEYCODES_H_
#define _MTK_KEYCODES_H_
-#include "ascii_keycodes.h"
+#include "mtkasciikeycodes.h"
#define MTK_KEY_F1 (MTK_KEY_ASCII_MAX + 0)
#define MTK_KEY_F2 (MTK_KEY_ASCII_MAX + 1)
View
2  include/mtklib.h
@@ -13,7 +13,7 @@
#ifndef __MTK_INCLUDE_MTKLIB_H_
#define __MTK_INCLUDE_MTKLIB_H_
-#define MTK_VERSION "1.1"
+#define MTK_VERSION "1.2"
#define EVENT_TYPE_UNDEFINED 0
#define EVENT_TYPE_COMMAND 1
View
2  lib/button.c
@@ -26,7 +26,7 @@ struct button;
#include "widman.h"
#include "userstate.h"
#include "messenger.h"
-#include "keycodes.h"
+#include "mtkeycodes.h"
static struct widman_services *widman;
static struct gfx_services *gfx;
View
2  lib/edit.c
@@ -28,7 +28,7 @@ struct edit;
#include "widman.h"
#include "userstate.h"
#include "messenger.h"
-#include "keycodes.h"
+#include "mtkeycodes.h"
#include "tick.h"
#include "clipboard.h"
View
2  lib/entry.c
@@ -27,7 +27,7 @@ struct entry;
#include "widman.h"
#include "userstate.h"
#include "messenger.h"
-#include "keycodes.h"
+#include "mtkeycodes.h"
#include "clipboard.h"
static struct widman_services *widman;
View
2  lib/frame.c
@@ -14,7 +14,7 @@ struct frame;
#define WIDGET struct frame
#include <stdio.h>
-#include "keycodes.h"
+#include "mtkeycodes.h"
#include "mtkstd.h"
#include "frame.h"
#include "script.h"
View
2  lib/grid.c
@@ -32,7 +32,7 @@ struct grid;
#include "grid.h"
#include "redraw.h"
#include "list_macros.h"
-#include "keycodes.h"
+#include "mtkeycodes.h"
#define MAX(a, b) ((a)>(b)?(a):(b))
#define MIN(a, b) ((a)<(b)?(a):(b))
View
2  lib/list.c
@@ -26,7 +26,7 @@ struct list;
#include "script.h"
#include "widman.h"
#include "userstate.h"
-#include "keycodes.h"
+#include "mtkeycodes.h"
#include "messenger.h"
static struct widman_services *widman;
View
2  lib/pixmap.c
@@ -19,7 +19,7 @@ struct pixmap;
#include "script.h"
#include "widman.h"
#include "messenger.h"
-#include "keycodes.h"
+#include "mtkeycodes.h"
#include "window.h"
static struct widman_services *widman;
View
2  lib/userstate.c
@@ -27,7 +27,7 @@
#include "tick.h"
#include "messenger.h"
#include "widget_data.h"
-#include "keycodes.h"
+#include "mtkeycodes.h"
#include "window.h"
static struct scrdrv_services *scrdrv;
View
2  lib/widman.c
@@ -29,7 +29,7 @@
#include "appman.h"
#include "list_macros.h"
#include "window.h"
-#include "keycodes.h"
+#include "mtkeycodes.h"
#include "userstate.h"
static struct redraw_services *redraw;
View
2  lib/window.c
@@ -29,7 +29,7 @@ struct window;
#include "appman.h"
#include "userstate.h"
#include "messenger.h"
-#include "keycodes.h"
+#include "mtkeycodes.h"
static struct widman_services *widman;
static struct gfx_services *gfx;

No commit comments for this range

Something went wrong with that request. Please try again.