diff options
| -rw-r--r-- | mousmain.c | 11 | ||||
| -rw-r--r-- | nls/vbmouse.es | 8 |
2 files changed, 13 insertions, 6 deletions
@@ -37,7 +37,7 @@ static nl_catd cat; #if USE_WHEEL -static bool detect_wheel(LPTSRDATA data) +static bool detect_ps2_wheel(LPTSRDATA data) { // Do a quick check for a mouse wheel here. // The TSR will do its own check when it is reset anyway @@ -63,7 +63,12 @@ static int set_wheel(LPTSRDATA data, bool enable) data->usewheel = enable; if (data->usewheel) { - if (!detect_wheel(data)) { + if (data->port == 0) { + if (!detect_ps2_wheel(data)) { + fprintf(stderr, _(3, 0, "Could not find PS/2 wheel mouse\n")); + } + } else { + // TODO Serial does not support wheels yet fprintf(stderr, _(3, 0, "Could not find PS/2 wheel mouse\n")); } } else { @@ -294,7 +299,7 @@ static int configure_driver_ps2(LPTSRDATA data) #if USE_WHEEL // Let's utilize the wheel by default data->usewheel = true; - detect_wheel(data); + detect_ps2_wheel(data); #else // Without ImEX/wheel detection, hardcode number of buttons data->num_buttons = 3; diff --git a/nls/vbmouse.es b/nls/vbmouse.es index 7b79bda..013a322 100644 --- a/nls/vbmouse.es +++ b/nls/vbmouse.es @@ -18,7 +18,7 @@ 0.9: integ <ON|OFF> Habilita/deshabilita integraci¢n con VirtualBox. 0.10: hostcur <ON|OFF> Habilita/deshabilita cursor dibujado por anfitri¢n. 0.11: reset Reinicia el controlador del rat¢n. -1.0:Rueda de rat¢n encontrada y activada\n +1.0:Encontrado rat¢n PS/2 con %u botones, %u ruedas\n 1.1:Soporte para rueda %s\n 1.2:habilitado 1.3:deshabilitado @@ -40,6 +40,7 @@ 1.19:Reiniciados ajustes del controlador del rat¢n\n 1.20:\nVBMouse %x.%x (como MSMOUSE %x.%x)\n 1.21:VBMouse ya instalado\n +1.22:Encontrado rat¢n serie en COM%u con %u botones, %u ruedas\n 3.0:No se pudo encontrar rat¢n PS/2 con rueda\n 3.1:Rueda no detectada o soporte no habilitado\n 3.2:Tecla desconocida '%s'\n @@ -49,8 +50,9 @@ 3.6:No se pudo detectar VMware, err=%ld\n 3.7:Error al habilitar dispositivo apuntador absoluto en VMware, err=0x%lx\n 3.8:No puedo iniciar la BIOS del rat¢n PS/2, err=%d\n -3.9:Alguien m s enganchado a INT33, no puedo desinstalar de forma segura\n -3.10:Alguien m s enganchado a INT2F, no puedo desinstalar de forma segura\n +3.9:Alguien m s enganchado a INT%X, no puedo desinstalar de forma segura\n 3.11:No encuentro los datos del controlador (¨No est instalado?)\n 3.12:Argumento no v lido '%s'\n 3.13:Se requiere argumento para '%s'\n +3.14:Ning£n rat¢n encontrado\n +3.15:No se pudo encontrar rat¢n en COM%u, err=%d\n |
