diff options
| author | Javier <dev.git@javispedro.com> | 2026-08-30 02:52:49 +0200 |
|---|---|---|
| committer | Javier <dev.git@javispedro.com> | 2026-08-30 02:52:49 +0200 |
| commit | b1e5bd8d67179f24f3603fad22ea928357f6b164 (patch) | |
| tree | c29706ae5e66f159612e9d7592875378f16a4ab5 /mousmain.c | |
| parent | 1b0344660de2832b472b0a413c50ff7f111a9293 (diff) | |
| download | vbados-b1e5bd8d67179f24f3603fad22ea928357f6b164.tar.gz vbados-b1e5bd8d67179f24f3603fad22ea928357f6b164.zip | |
update es translation and add error message for wheels on serial mice
Diffstat (limited to 'mousmain.c')
| -rw-r--r-- | mousmain.c | 11 |
1 files changed, 8 insertions, 3 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; |
