# InsomniaSDL

**A simple program made with SDL3 library to regularly send random mouse movement signals to OS.**

## How to use it
Simply execute `insomnia` or `insomia.exe` The program will send random mouse movement around the center of the screen every 5 seconds.

## How to build the program on Linux (Red Hat, Fedora)
```bash
sudo dnf group install c-development
sudo dnf install cmake SDL3-devel
cd insomnia
mkdir build
cd build
cmake ..
make
```

## Cross-compile the Windows executable on Linux (Red Hat, Fedora)
Install the software packages mentioned in the previous section. Then:
 ```bash
sudo dnf install mingw32-gcc mingw32-gcc-c++ mingw32-SDL3
cd insomnia
mkdir build_win32
cd build_win32
mingw32-cmake ..
make
```

## Technical references
- [uinput module - The Linux Kernel documentation](https://kernel.org/doc/html/latest/input/uinput.html)
- [ydotool](https://github.com/ReimuNotMoe/ydotool)
- [input-emulator](https://github.com/tio/input-emulator)

## ChangeLog

20260507:
 - The first release.

#### Author: DarkRanger (https://darkranger.no-ip.org)
#### License: MIT License