Example #1
0
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;
}
Example #2
0
	void Input::Initialize(Window &pWindow){
		mInputs = &pWindow.GetInput();
		mWindow = &pWindow;
	}