diff options
| author | Pietro Gagliardi <[email protected]> | 2014-03-29 14:05:43 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-03-29 14:05:43 -0400 |
| commit | da7363a574616c3adf4dd65acd71cc240296f57c (patch) | |
| tree | d6fc7326e829d2ffc79e20a7431e9fc3bec7ba15 | |
| parent | 85182aec6754c8b45ff0db91984542baf0203f61 (diff) | |
Added the numeric keypad and function keys to the keyboard test.
| -rw-r--r-- | test/kbtest.go | 42 |
1 files changed, 29 insertions, 13 deletions
diff --git a/test/kbtest.go b/test/kbtest.go index 747764e..b133e5d 100644 --- a/test/kbtest.go +++ b/test/kbtest.go @@ -122,19 +122,35 @@ var extkeypoints = map[ExtKey]image.Point{ Down: image.Pt(573, 211), Left: image.Pt(537, 211), Right: image.Pt(609, 211), -/* F1: image.Pt(xx, xx), - F2: image.Pt(xx, xx), - F3: image.Pt(xx, xx), - F4: image.Pt(xx, xx), - F5: image.Pt(xx, xx), - F6: image.Pt(xx, xx), - F7: image.Pt(xx, xx), - F8: image.Pt(xx, xx), - F9: image.Pt(xx, xx), - F10: image.Pt(xx, xx), - F11: image.Pt(xx, xx), - F12: image.Pt(xx, xx), -*/} + F1: image.Pt(58, 3), + F2: image.Pt(94, 3), + F3: image.Pt(130, 3), + F4: image.Pt(166, 3), + F5: image.Pt(203, 3), + F6: image.Pt(240, 3), + F7: image.Pt(280, 3), + F8: image.Pt(318, 3), + F9: image.Pt(355, 3), + F10: image.Pt(396, 3), + F11: image.Pt(434, 3), + F12: image.Pt(471, 3), + N0: image.Pt(656, 199), + N1: image.Pt(656, 159), + N2: image.Pt(692, 159), + N3: image.Pt(729, 159), + N4: image.Pt(656, 118), + N5: image.Pt(692, 118), + N6: image.Pt(729, 118), + N7: image.Pt(656, 78), + N8: image.Pt(692, 78), + N9: image.Pt(729, 78), + NDot: image.Pt(729, 199), + NEnter: image.Pt(765, 159), + NAdd: image.Pt(765, 78), + NSubtract: image.Pt(765, 37), + NMultiply: image.Pt(729, 37), + NDivide: image.Pt(692, 37), +} var modpoints = map[Modifiers]image.Point{ Ctrl: image.Pt(4, 199), |
