static VALUE Window_get_input(VALUE vSelf) { // Get C++ object pointer from vSelf Window *pSelf; Data_Get_Struct(vSelf, Window, pSelf); DECLARE_PTR_VAR(Input, Input, (Input *)&pSelf->GetInput()); return vInput; }
void Input::Initialize(Window &pWindow){ mInputs = &pWindow.GetInput(); mWindow = &pWindow; }