I might have misunderstood but do you mean as an input device attached to your desktop computer? Kdeconnect has made that available for quite some time out of the box. (Although it's been a long time since I used it and when I tested it just now apparently I've somehow managed to break the input processing half of the software on my desktop in the interim.)