Skip to content

kongehund/Skew_Area

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Skew_Area

A plugin for OpenTabletDriver which creates a parallelogram inside the display area based on an angle "Y Skew". Enabling the filter will constrain the input area to the parallelogram. The input is then transformed to fit the entire display area.

Skew

Status

The plugin is in a usable state, but the following should be taken into account:

  • There's no limit to the angle you choose, so the parallelogram won't stay within the display area if the angle is greater than the angle to the diagonal line.
  • There's some math errors, so the angle you choose isn't the same as the actual angle. This isn't a problem unless you want your parallelogram to have a specific angle instead of experimenting to find one that works for you.

Technical description

The parallelogram has flat bottom and top edges, and the Y-axis is rotated counter-clockwise by the angle - the angle is thus the one between the vertical axis and the desired parallelogram angle. The parallelogram will automatically reside within the input area and maximize its size - i.e. if you have an angle of 0, you have the whole input area rectangle - when you increase the angle from 0 and upwards, the top-left and bottom-right corner of the rectangle stay put, whereas the top-right and bottom-left corner move to the left and right, respectively, turing the rectangle into a parallelogram whose horizontal edges get smaller and the whole parallelogram thinner as you increase the angle.

How to add to OpenTabletDriver

The plugin may be added to the default plugin list in OTD at a later date (if I get around to fixing the stuff written in "Status" and ask the maintainers of OTD to add it).

Until then, you can add this plugin to OTD like this:

  • Clone the repository (https://github.com/kongehund/Skew_Area) into a new folder of your choice. You can use Visual Studio to do this (cloning is an option when starting a new project).
  • Build the project. You can do this from terminal, or with Visual Studio (right-click the solution or the project in solution explorer and click build)
  • Find the .dll in the bin folder of your cloned repository
  • Open %localappdata%\OpenTabletDriver, create a new folder "Skew Area" and copy the .dll into this folder.
  • Open OTD and enable the filter

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published