r/C_Programming • u/SempiternalFutility • Aug 15 '26
Project Feedback appreciated for this small program
I wrote a program called moused and would appreciate if someone could give me some feedback about how to improve it further.
moused will alter the raw mouse sensitivity for your mouse, written with libevdev and primarily meant for those with ludicrous DPIs on their mice. I don't want to tell you much about it, because I will not only appreciate feedback on my code, but also on my README as well
11
Upvotes
17
u/sciencekm Aug 16 '26
I only looked at one source (dev.c) and saw this repeated in at least two places:
That is a very expensive way of constructing a string. It is as if this was generated by some bad C# to C converter. Or maybe you are just really new to programming.
You can simply do this with:
6
u/mikeblas Aug 16 '26
What role did AI have in the creation of your project?
5
u/TheKiller36_real Aug 16 '26
don't really have any time rn unfortunately but I've always been interested in looking into how evdev works so I will come back to take a look! fromthe very short glimpse I took:
+ the
build.shis exactly all you need, nice - god I sound like an AI lol+ Codeberg usage is always a plus
- the README text seems quite fitting but maybe the video should actually show your program (maybe a virtual mouse icon to show relation between mouse and cursor movements)
- I dislike the
#include "../include/xxx.h"a lot, just add it this your compile command:-Iincludeand then use#include "xxx.h"2
u/[deleted] Aug 17 '26
[removed] — view removed comment