MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / writeAbs

Function writeAbs

source/kernel/devs/devinput.cpp:204–211  ·  view source on GitHub ↗

struct input_absinfo { __s32 value; __s32 minimum; __s32 maximum; __s32 fuzz; __s32 flat; __s32 resolution; };

Source from the content-addressed store, hash-verified

202// __s32 resolution;
203// };
204static void writeAbs(KMemory* memory, U32 address, U32 value, U32 min, U32 max) {
205 memory->writed(address, value);
206 memory->writed(address+4, min);
207 memory->writed(address+8, max);
208 memory->writed(address+12, 0);
209 memory->writed(address+16, 0);
210 memory->writed(address+20, 96);
211}
212
213U32 DevInput::ioctl(KThread* thread, U32 request) {
214 CPU* cpu = thread->cpu;

Callers 1

ioctlMethod · 0.85

Calls 1

writedMethod · 0.45

Tested by

no test coverage detected