MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / MouseDevice

Method MouseDevice

Kernel/src/arch/x86_64/mouse.cpp:120–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118 DirectoryEntry dirent;
119
120 MouseDevice(char* name) : Device(name, TypeInputDevice){
121 flags = FS_NODE_CHARDEVICE;
122 strcpy(dirent.name, name);
123 dirent.flags = flags;
124 dirent.node = this;
125 }
126
127 ssize_t Read(size_t offset, size_t size, uint8_t *buffer){
128 if(size < sizeof(MousePacket)) return 0;

Callers

nothing calls this directly

Calls 1

strcpyFunction · 0.85

Tested by

no test coverage detected