qmk_firmware/internals/digitizer.md

4.6 KiB

group digitizer

HID Digitizer

Summary

Members Descriptions
public void digitizer_flush(void) Send the digitizer report to the host if it is marked as dirty.
public void digitizer_in_range_on(void) Assert the "in range" indicator, and flush the report.
public void digitizer_in_range_off(void) Deassert the "in range" indicator, and flush the report.
public void digitizer_tip_switch_on(void) Assert the tip switch, and flush the report.
public void digitizer_tip_switch_off(void) Deassert the tip switch, and flush the report.
public void digitizer_barrel_switch_on(void) Assert the barrel switch, and flush the report.
public void digitizer_barrel_switch_off(void) Deassert the barrel switch, and flush the report.
public void digitizer_set_position(float x,float y) Set the absolute X and Y position of the digitizer contact, and flush the report.
public void host_digitizer_send(digitizer_t * digitizer)
struct digitizer_t

Members

public void digitizer_flush(void)

Send the digitizer report to the host if it is marked as dirty.

public void digitizer_in_range_on(void)

Assert the "in range" indicator, and flush the report.

public void digitizer_in_range_off(void)

Deassert the "in range" indicator, and flush the report.

public void digitizer_tip_switch_on(void)

Assert the tip switch, and flush the report.

public void digitizer_tip_switch_off(void)

Deassert the tip switch, and flush the report.

public void digitizer_barrel_switch_on(void)

Assert the barrel switch, and flush the report.

public void digitizer_barrel_switch_off(void)

Deassert the barrel switch, and flush the report.

public void digitizer_set_position(float x,float y)

Set the absolute X and Y position of the digitizer contact, and flush the report.

Parameters

  • x The X value of the contact position, from 0 to 1.

  • y The Y value of the contact position, from 0 to 1.

public void host_digitizer_send(digitizer_t * digitizer)

struct digitizer_t

Summary

Members Descriptions
public bool in_range
public bool tip
public bool barrel
public float x
public float y
public bool dirty

Members

public bool in_range

public bool tip

public bool barrel

public float x

public float y

public bool dirty