any idea why I would be getting this error?:
error: ‘BadDevice’ was not declared in this scope
I have included:
#include <X11/Xlib.h>
and
#include <X11/extensions/XInput2.h>
in my class header file.
I am using it like this:
int ret = XIGrabDevice(display_, 2, LinuxInputManager::getWindow(),
CurrentTime, None, GrabModeAsync,
GrabModeAsync, False, &eventMask_);
if (ret == BadValue)
std::cout << "bad value" << std::endl;
else if (ret == BadDevice)
std::cout << "BadDevice" << std::endl;
if (ret == BadMatch)
std::cout << "BadMatch" << std::endl;
if (ret == BadWindow)
std::cout << "BadWindow" << std::endl;
if (ret) {
std::cout << "not available 3" << std::endl;
}
Cheers
Jarrett