Hugo Locurcio b4eff8de9d Update all demos for Godot 4.6, fix Global Illumination demo 2 weeks ago
..
screenshots fdb2f50a20 Add a graphics tablet input demo (#1162) 1 year ago
README.md 0343cedd48 General proofreading (#1262) 4 months ago
graphics_tablet_input.gd 520b4a7870 Improve style in many demos (#1263) 4 months ago
graphics_tablet_input.gd.uid 14fcc0e133 Update all demo projects for Godot 4.5 and use path-deterministic UIDs (#1258) 4 months ago
graphics_tablet_input.tscn b4eff8de9d Update all demos for Godot 4.6, fix Global Illumination demo 2 weeks ago
icon.svg fdb2f50a20 Add a graphics tablet input demo (#1162) 1 year ago
icon.svg.import 14fcc0e133 Update all demo projects for Godot 4.5 and use path-deterministic UIDs (#1258) 4 months ago
project.godot b4eff8de9d Update all demos for Godot 4.6, fix Global Illumination demo 2 weeks ago

README.md

Graphics Tablet Input

A demo showing how to use graphics tablet input in Godot. Godot has full support for pressure sensitivity, tilt and pen inversion (i.e. checking whether the "eraser" is being used on the pen). Note that some platforms and tablets may not support reporting tilt.

Input accumulation and V-Sync are disabled by default in this demo to minimize input lag and get crisp lines (even at low FPS). This makes for the most responsive drawing experience possible. You can toggle them in the sidebar to see the difference it makes. Note that on Android, iOS, and Web platforms, V-Sync is forced at a system level and cannot be disabled.

Lines are drawn using the Line2D node. Every time you lift off the open and start a new line, a new Line2D node is created. Line antialiasing is provided by enabling 2D MSAA in the Project Settings.

Mouse input can also be used to draw in this demo, but using a tablet is recommended.

[!NOTE]

If you experience issues on Windows, try changing the tablet driver in the Project Settings to wintab instead of the default winink. Also, try changing your tablet's input mode from relative to absolute mode.

Language: GDScript

Renderer: Mobile

Screenshots

Screenshot