Electronicks / JoyShockMapper

A tool for PC gamers to play games with DualShock 4s, JoyCons, and Pro Controllers. Gyro aiming, flick stick.
Other
343 stars 20 forks source link

Improve /dev/uinput error handling #23

Closed mmmaisel closed 3 years ago

mmmaisel commented 3 years ago

Raise an exception with a helpful error message when /dev/uinput can not be opened. Otherwise, the program continues with a null pointer and crashes with a segfault later.