Tag / input

  • October 27, 2016 - Bryce Harrington

    The Basics of Input Methods in Weston

    Wayland provides an optional protocol, zwp_input_method, for defining alternate ways of sending keystrokes and mouse activity to clients. This could be things such as an onscreen keyboard or a popup for building Korean characters. The design of the protocol allows for different kinds of input methods to be made available via modular plugins, allowing them to be coded as discrete client applications, separate from the compositor’s core. The Wayland project maintains a reference compositor named Weston that provides implementations of the various protocols for demonstrative purposes, including two implementations of the zwp_input_method protocol. One input method, weston-keyboard, manages an on-screen keyboard that pops up at the bottom of the screen, similar to on-screen keyboards typically seen on touch-based mobile devices. The other input method, weston-simple-im, enables a compose key functionality. The user can configure which input method to use via their weston.ini file. No more than one input method can […]

    Read More
  • August 31, 2015 - Bryce Harrington

    Simulating Middle-Mouse Paste on Touchpads

    When did you first run into a computer with a mouse? How many buttons did it have? Most UNIX-like operating systems provide two separate copy buffers; the first provides the standard copy and past functionality everyone knows and loves (Ctrl + C, Ctrl +V), while the second allows you to paste selected text directly. The use of this secondary buffer has been dependent largely on mouse design for the last few decades, and as the hardware has changed, so has the usage of this copy buffer. First, A Little History I was familiar with the original Mac mouses with their curious single button, but the first mouse-based computer I used was a Sun workstation in the early 90’s while I was in college. It had THREE buttons; a proper mouse! The left button selected things, the right brought up context menus, and the middle button pasted from the secondary copy […]

    Read More