From 2508f4734c07864b0b01aad6a10c0d5f6fb90468 Mon Sep 17 00:00:00 2001 From: theyareonit Date: Sun, 15 Sep 2024 15:40:32 +0200 Subject: [PATCH] add ps/2 support on linux --- resources/linux-input.exe.so | Bin 146832 -> 146856 bytes src/linux/linux-input.cpp | 4 +++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/linux-input.exe.so b/resources/linux-input.exe.so index 1023de743afe4e7952e98828e6caeeaf82da0296..537a8c943df008d1fa83c9e8acaf4cd4fac1a653 100644 GIT binary patch delta 6191 zcmZWt30M?Ywyx9A2q>EoTMP-(tx*8R_ZPu-$# zQGMXf`oN;DG_N@R)gXIc(&Vxim-Gx;-PasztM~oyKPe*0deCedRrrgDe!=EwmC&+x zhgG%3@7A>c=8!X^-}3i6tj_u1-?r)idR@O6m^{vO}AL5Vr@@YY?Xc? zxF>DasktMndV(eMw31oU!jf64CxZQ4#nxcqtgVlSik65BC-AJ|yMHdm}oS?;Xg1pEFAmTs70Zv#cQOpge0 zM4g^&u~+g-(wq1aF~lz3U7 zQ>Y`V%~Z?FKvi2eLKXI|o(ML2mc`Chx?WX1tP9xn<1IE`vAtDSoYafKHqE`8(ru}q z0J~1b{G`&|9c=miTE7z-6LDV^Yg@-e5{Y9b;QdtJtrK! zs4UD^5msYqg*~a4z`}a{5G*v!+^KrqPp1e+R7>@yjZhXwsE!$;CxX4CdZHo1RjT5v zTr(rQGb3nV68(+0q)<7{;i*HYhJraQm7b+fcvULBK=ZgJm7I==P(LpAeL3}pQQ+S5 z&@f!(d)PUYMnAO|3sLFbiYbwB7P_+y!|-g7iGs_{f=b^4E+0xUw27||rQU=0n!0i~ z76u;?m72XMiL=suzR|=68G76zWUmG9>3FE6q9gJeqUf2Zrv%}HPxsYa zyQ|(-I}u^7LSYcYaS`+VMSK?87pOVeMtrMf&h=evdZGPHmZlwEfl2L9j25Q(dW)Rv zbgZ+$eFa5vy2=H#g;Q%=xXcBon$f?Q7PmpuD#nu6tYTa+b3Y}P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 zxCmFr)IFh`O!CRku;?$i@FKLEUTuA^=+AkVXg9szEzh*HU+3sc&S{$F=47Fp-gGX; zF)iAcc{*r1!>?RM4X>-aY&5?4>49H_A~lMuK+{WnQ*13)rA$^*k@$fsQfs)wSFqJB z(C;f6F&cMqzJ9jE@US`74h@^bhx^%%;rq$=v@Nkk);6_q165Dkn%nRP_RSUK;@bYU Vc#2{gU>k&EI7Of@7Y?v>{Xfu(m(&0N diff --git a/src/linux/linux-input.cpp b/src/linux/linux-input.cpp index 6672c78..21d84b0 100644 --- a/src/linux/linux-input.cpp +++ b/src/linux/linux-input.cpp @@ -96,7 +96,9 @@ int main() { continue; } - if (libevdev_get_id_bustype(dev) == BUS_USB || libevdev_get_id_bustype(dev) == BUS_BLUETOOTH) { + + int bus = libevdev_get_id_bustype(dev); + if (bus == BUS_USB || bus == BUS_BLUETOOTH || bus == BUS_I8042) { devices.push_back(dev); epoll_event ev;