// SPDX-License-Identifier: GPL-2.0-only /* Copyright (c) 2022 Benjamin Tissoires * * This program will morph the Microsoft Surface Dial into a mouse, * and depending on the chosen resolution enable or not the haptic feedback: * - a resolution (-r) of 3600 will report 3600 "ticks" in one full rotation * without haptic feedback * - any other resolution will report N "ticks" in a full rotation with haptic * feedback * * A good default for low resolution haptic scrolling is 72 (1 "tick" every 5 * degrees), and set to 3600 for smooth scrolling.
*/
staticvoid usage(constchar *prog)
{
fprintf(stderr, "%s: %s [OPTIONS] /sys/bus/hid/devices/0BUS:0VID:0PID:00ID\n\n" " OPTIONS:\n" " -r N\t set the given resolution to the device (number of ticks per 360°)\n\n",
__func__, prog);
fprintf(stderr, "This program will morph the Microsoft Surface Dial into a mouse,\n" "and depending on the chosen resolution enable or not the haptic feedback:\n" "- a resolution (-r) of 3600 will report 3600 'ticks' in one full rotation\n" " without haptic feedback\n" "- any other resolution will report N 'ticks' in a full rotation with haptic\n" " feedback\n" "\n" "A good default for low resolution haptic scrolling is 72 (1 'tick' every 5\n" "degrees), and set to 3600 for smooth scrolling.\n");
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.