From 942312635433c429448f33ad6f990716ff1a4145 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 29 Mar 2014 15:56:57 -0400 Subject: [PATCH] Added positions of all other keys to the keyboard test. Now ready for the Windows port! --- test/kbtest.go | 52 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/test/kbtest.go b/test/kbtest.go index b133e5d..8b36c4e 100644 --- a/test/kbtest.go +++ b/test/kbtest.go @@ -107,7 +107,57 @@ func modcolor(m Modifiers) *image.Uniform { } var keypoints = map[byte]image.Point{ - // ... + '`': image.Pt(4, 37), + '1': image.Pt(40, 37), + '2': image.Pt(76, 37), + '3': image.Pt(114, 37), + '4': image.Pt(148, 37), + '5': image.Pt(184, 37), + '6': image.Pt(220, 37), + '7': image.Pt(256, 37), + '8': image.Pt(292, 37), + '9': image.Pt(328, 37), + '0': image.Pt(364, 37), + '-': image.Pt(400, 37), + '=': image.Pt(436, 37), + '\b': image.Pt(472, 37), + '\t': image.Pt(3, 78), + 'q': image.Pt(71, 78), + 'w': image.Pt(107, 78), + 'e': image.Pt(143, 78), + 'r': image.Pt(179, 78), + 't': image.Pt(215, 78), + 'y': image.Pt(251, 78), + 'u': image.Pt(287, 78), + 'i': image.Pt(323, 78), + 'o': image.Pt(359, 78), + 'p': image.Pt(395, 78), + '[': image.Pt(431, 78), + ']': image.Pt(467, 78), + '\\': image.Pt(503, 78), + 'a': image.Pt(76, 118), + 's': image.Pt(112, 118), + 'd': image.Pt(148, 118), + 'f': image.Pt(184, 118), + 'g': image.Pt(220, 118), + 'h': image.Pt(256, 118), + 'j': image.Pt(292, 118), + 'k': image.Pt(328, 118), + 'l': image.Pt(364, 118), + ';': image.Pt(400, 118), + '\'': image.Pt(436, 118), + '\n': image.Pt(472, 118), + 'z': image.Pt(91, 159), + 'x': image.Pt(127, 159), + 'c': image.Pt(164, 159), + 'v': image.Pt(200, 159), + 'b': image.Pt(236, 159), + 'n': image.Pt(272, 159), + 'm': image.Pt(308, 159), + ',': image.Pt(345, 159), + '.': image.Pt(381, 159), + '/': image.Pt(417, 159), + ' ': image.Pt(164, 199), } var extkeypoints = map[ExtKey]image.Point{