MCPcopy Create free account
hub / github.com/KDE/kdeconnect-kde / enableAbsCode

Function enableAbsCode

plugins/digitizer/linuxdigitizerimpl.cpp:25–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25static int enableAbsCode(libevdev *dev, unsigned int code, int min, int max, int resolution)
26{
27 input_absinfo absinfo = {
28 .value = 0,
29 .minimum = min,
30 .maximum = max,
31 .fuzz = 0,
32 .flat = 0,
33 .resolution = resolution,
34 };
35
36 return libevdev_enable_event_code(dev, EV_ABS, code, &absinfo);
37}
38
39void LinuxDigitizerImpl::startSession(int width, int height, int resolutionX, int resolutionY)
40{

Callers 1

startSessionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected