More debugging

This commit is contained in:
Michael 2023-10-12 17:18:10 -04:00
parent 8489d81075
commit 684dcb6947

View File

@ -1514,11 +1514,10 @@ static void InitDrmInput(void)
static void InitDrmJoystick(int index, const char *path) static void InitDrmJoystick(int index, const char *path)
{ {
if ((platform.gamepadStreamFd[index] = open(path, O_RDONLY | O_NONBLOCK)) < 0) TraceLog(LOG_INFO, "InitDrmJoystick");
{
// This isn't an active device that can be read so return without doing anything else. int result = (platform.gamepadStreamFd[index] = open(path, O_RDONLY | O_NONBLOCK));
return; printf("Result of file open: %d\n", result);
}
// Get the bits describing the absolute axes of the device. // Get the bits describing the absolute axes of the device.
unsigned long abs_bits[ABS_MAX / 8 + 1] = {0}; unsigned long abs_bits[ABS_MAX / 8 + 1] = {0};