More debugging
This commit is contained in:
parent
8489d81075
commit
684dcb6947
|
|
@ -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};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user