Skip to content

fully customizable onscreen keyboard and touchpad app written in python and HTML

License

Notifications You must be signed in to change notification settings

mi4code/onscreen-hid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Onscreen HID

Fully customizable onscreen keyboard and touchpad app written in python and HTML.

Features

  • customizable UI written in HTML
  • full hardware-like keyboard
  • touchpad with basic gestures (tap, double tap, scolling, right click)
  • option to override system keyboard layout

Installation

Configuration

there are 3 places where you can edit something

  • oshid.py - variables on the begining
  • ui.html = UI file There are some CSS variables to make basic customization easier. If you want custom UI you can build your own (just use same ids and callbacks - window.pywebview.api.key_down(<id>); window.pywebview.api.key_up(<id>);).
  • keys.csv = layout/key mapping file

Known bugs and limitations

  • touchpad doesnt work on all systems (some treat touch as mouse so the mouse pointer gets placed to the touch location)
  • dead keys arent currently supported in custom layout mode (as workaround use Unicode combining diacritical marks (U+0301 - U+036F))
  • touchpad doesnt support zooming since its not mouse feature

TODOs

  • settings GUI
  • monitoring caps/num/scroll lock
  • dead keys
  • handwriting/speech to text
  • act as bluetooth/USB HID device (Linux)
  • apply layout to hardware keyboard (Windows -> export to *.klc; Linux -> export to ???)