- SCM
- irr_getCursorControl (SCM wrapped_device)
- {
- irr::gui::ICursorControl* cursor_control =
- unwrap_device (wrapped_device)->getCursorControl ();
- return wrap_cursor_control (cursor_control);
- }
+SCM
+irr_gui_ICursorControl_getPosition (SCM cursor_control)
+{
+ return scm_from_position2d_s32
+ (((gui::ICursorControl*)scm_to_pointer (cursor_control))->getPosition ());
+}
+
+
+SCM
+irr_gui_ICursorControl_setPosition (SCM cursor_control,
+ SCM position)
+{
+ ((gui::ICursorControl*)scm_to_pointer (cursor_control))->
+ setPosition (scm_to_position2d_s32 (position));
+ return SCM_UNSPECIFIED;
+}