s32 _PADopen(void *pDsp) { GSdsp = *(Display**)pDsp; GSwin = (Window)*(((u32*)pDsp)+1); SetAutoRepeat(false); return 0; }
s32 _PADopen(void *pDsp) { SPININIT(mutex_KeyEvent); mutex_WasInit = true; GSdsp = reinterpret_cast<GSdspTPtr>(static_cast<uptr*>(pDsp)[0]); GSwin = reinterpret_cast<GSwinTPtr>(static_cast<uptr*>(pDsp)[1]); PAD_LOG("Got Display/Window handle %p/%p\n", GSdsp, GSwin); SetAutoRepeat(false); return 0; }
void _PADclose() { SetAutoRepeat(true); vector<JoystickInfo*>::iterator it = s_vjoysticks.begin(); // Delete everything in the vector vjoysticks. while (it != s_vjoysticks.end()) { delete *it; it ++; } s_vjoysticks.clear(); }
void _PADclose() { mutex_WasInit = false; SPINDESTROY(mutex_KeyEvent); SetAutoRepeat(true); vector<JoystickInfo*>::iterator it = s_vjoysticks.begin(); // Delete everything in the vector vjoysticks. while (it != s_vjoysticks.end()) { delete *it; it ++; } s_vjoysticks.clear(); }
s32 _PADopen(void *pDsp) { GtkScrolledWindow *win; win = *(GtkScrolledWindow**) pDsp; if (GTK_IS_WIDGET(win)) { // Since we have a GtkScrolledWindow, for now we'll grab whatever display // comes along instead. Later, we can fiddle with this, but I'm not sure the // best way to get a Display* out of a GtkScrolledWindow. A GtkWindow I might // be able to manage... --arcum42 GSdsp = GDK_DISPLAY(); } else { GSdsp = *(Display**)pDsp; } SetAutoRepeat(false); return 0; }