[BRLTTY] varioconnect40 and brltty latest dev
Dave Mielke
dave at mielke.cc
Sat Aug 23 15:56:25 EDT 2008
[quoted lines by Andor Demarteau on 2008/08/23 at 20:06 +0200]
>- on the front pannel the left and right set of two keys seems non
>functional
>=- the two buttons left/right of the navpad seem to register as dot 7 or 8
>respectively in learningmode
This relates to another discussion that's been going on. Please try the
attached patch (baum-dots78-3.patch). It should make the inner two keys be dots
7 and 8, and it should make the buttons on either side of the pad input a
space. The outer two keys aren't bound to anything yet.
>- this whlist the most left and right keys on the topmounted
>braille keypad do not register at all
This patch should make them work as dots 7 and 8 as well.
>- a bit different is that the keycoding is differnt then that inside the
>Baum varioconnect manual whcih is a bit getting used to.
They probably document what's been done for their Windows driver. We have no
idea what that is.
--
Dave Mielke | 2213 Fox Crescent | I believe that the Bible is the
Phone: 1-613-726-0014 | Ottawa, Ontario | Word of God. Please contact me
EMail: dave at mielke.cc | Canada K2A 1H7 | if you're concerned about Hell.
http://FamilyRadio.com/ | http://Mielke.cc/bible/
-------------- next part --------------
Index: BrailleDrivers/Baum/braille.c
===================================================================
--- BrailleDrivers/Baum/braille.c (revision 3915)
+++ BrailleDrivers/Baum/braille.c (working copy)
@@ -447,13 +447,15 @@
#define BAUM_KEY_BLU BAUM_KEY(0X20, BACK6)
#define BAUM_SHIFT_DOT (BAUM_SHIFT_BACK10A + BAUM_WIDTH_BACK10A)
-#define BAUM_WIDTH_DOT 6
+#define BAUM_WIDTH_DOT 8
#define BAUM_KEY_DOT1 BAUM_KEY(0X01, DOT)
#define BAUM_KEY_DOT2 BAUM_KEY(0X02, DOT)
#define BAUM_KEY_DOT3 BAUM_KEY(0X04, DOT)
#define BAUM_KEY_DOT4 BAUM_KEY(0X08, DOT)
#define BAUM_KEY_DOT5 BAUM_KEY(0X10, DOT)
#define BAUM_KEY_DOT6 BAUM_KEY(0X20, DOT)
+#define BAUM_KEY_DOT7 BAUM_KEY(0X40, DOT)
+#define BAUM_KEY_DOT8 BAUM_KEY(0X80, DOT)
#define BAUM_SHIFT_BUTTON (BAUM_SHIFT_DOT + BAUM_WIDTH_DOT)
#define BAUM_WIDTH_BUTTON 8
@@ -2207,7 +2209,8 @@
} else if (routingKeyCount == 0) {
if (keys && (keys == (keys & (BAUM_KEY_DOT1 | BAUM_KEY_DOT2 | BAUM_KEY_DOT3 |
BAUM_KEY_DOT4 | BAUM_KEY_DOT5 | BAUM_KEY_DOT6 |
- BAUM_KEY_B9 | BAUM_KEY_B0)))) {
+ BAUM_KEY_DOT7 | BAUM_KEY_DOT8 |
+ BAUM_KEY_F2 | BAUM_KEY_F3)))) {
command = BRL_BLK_PASSDOTS;
#define DOT(dot,key) if (keys & BAUM_KEY_##key) command |= BRL_DOT##dot
DOT(1, DOT1);
@@ -2216,8 +2219,10 @@
DOT(4, DOT4);
DOT(5, DOT5);
DOT(6, DOT6);
- DOT(7, B9);
- DOT(8, B0);
+ DOT(7, DOT7);
+ DOT(8, DOT8);
+ DOT(7, F2);
+ DOT(8, F3);
#undef DOT
} else {
switch (keys) {
@@ -2290,6 +2295,9 @@
KEY(BAUM_KEY_TL3|BAUM_KEY_TR1|BAUM_KEY_TR3, BRL_CMD_AUTOSPEAK);
KEY(BAUM_KEY_B11, BRL_BLK_PASSDOTS);
+ KEY(BAUM_KEY_B9, BRL_BLK_PASSDOTS);
+ KEY(BAUM_KEY_B0, BRL_BLK_PASSDOTS);
+
KEY(BAUM_KEY_PRESS, BRL_BLK_PASSKEY+BRL_KEY_ENTER);
KEY(BAUM_KEY_LEFT, BRL_BLK_PASSKEY+BRL_KEY_CURSOR_LEFT);
KEY(BAUM_KEY_RIGHT, BRL_BLK_PASSKEY+BRL_KEY_CURSOR_RIGHT);
More information about the BRLTTY
mailing list