# HUION Inspiroy 2 tablet driver in Julia

**URL:** <https://discourse.julialang.org/t/huion-inspiroy-2-tablet-driver-in-julia/106752>\
**Category:** Maker\
**Tags:** question\
**Created:** [November 26, 2023, 4:19pm UTC](https://discourse.julialang.org/t/huion-inspiroy-2-tablet-driver-in-julia/106752 "2023-11-26T16:19:14Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![mgkuhn](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mgkuhn/32/6276_2.png) [@mgkuhn](https://discourse.julialang.org/u/mgkuhn)\
**Post date:** [November 27, 2023, 11:45am UTC](https://discourse.julialang.org/t/huion-inspiroy-2-tablet-driver-in-julia/106752/4 "2023-11-27T11:45:54Z")

</div>

> What do you mean by `xev` application program

> **[xorg-xev](https://software.manjaro.org/package/xorg-xev)**
>
> Print contents of X events

You start xev simply by typing `xev` into a shell, hover the mouse over it’s little white window and it will then show you on stdout for each keyboard keystroke or mouse/tablet button click a KeyPress/KeyRelease or a ButtonPress/ButtonRelease event sent by the X11 server to applications. KeyPress/KeyRelease events contain both the “keycode” provided by the device driver, as well as the “keysym” mapped onto that key by a keysym mapping table managed by the X11 server. You can change the keycode-\>keysym mapping with the command-line tool `xmodmap`.

Questions you may want to answer:

- Which type of display server are you using? There are two: an older one known as “MIT X11” or “The X Window System”, and a newer one known as “Wayland”. (I personally still know very little about Wayland, as I haven’t used it yet, but the Linux world is in the middle of transitioning from X11 to Wayland, which can complicate things a bit.)
- If you are using an X11 application and display server: is the driver sending KeyPress or ButtonPress events for the keys/buttons that you are interested in?

(None of this, by the way, has anything to do with Julia. Julia isn’t really a language suitable for writing kernel device drivers, something that is (almost) entirely done in C. But I strongly suspect you don’t actually need a new device driver, and can use existing mapping mechanisms to do what you want.)

---

_[View the full topic](https://discourse.julialang.org/t/huion-inspiroy-2-tablet-driver-in-julia/106752)._
