//////////////////////////////////////////////////////////// /// Get the mouse Y position //////////////////////////////////////////////////////////// int sfInput_GetMouseY(const sfInput* input) { CSFML_CALL_PTR_RETURN(input, GetMouseY(), 0); }
//////////////////////////////////////////////////////////// /// Get the joystick position on a given axis //////////////////////////////////////////////////////////// float sfInput_GetJoystickAxis(const sfInput* input, unsigned int joyId, sfJoyAxis axis) { CSFML_CALL_PTR_RETURN(input, GetJoystickAxis(joyId, (sf::Joy::Axis)axis), 0.f); }
//////////////////////////////////////////////////////////// /// Get the state of a joystick button //////////////////////////////////////////////////////////// sfBool sfInput_IsJoystickButtonDown(const sfInput* input, unsigned int joyId, unsigned int button) { CSFML_CALL_PTR_RETURN(input, IsJoystickButtonDown(joyId, button), sfFalse); }
//////////////////////////////////////////////////////////// /// Get the state of a mouse button //////////////////////////////////////////////////////////// sfBool sfInput_IsMouseButtonDown(const sfInput* input, sfMouseButton button) { CSFML_CALL_PTR_RETURN(input, IsMouseButtonDown((sf::Mouse::Button)button), sfFalse); }
//////////////////////////////////////////////////////////// /// Get the state of a key //////////////////////////////////////////////////////////// sfBool sfInput_IsKeyDown(const sfInput* input, sfKeyCode code) { CSFML_CALL_PTR_RETURN(input, IsKeyDown((sf::Key::Code)code), sfFalse); }
unsigned int sfTexture_GetHeight(const sfTexture* texture) { CSFML_CALL_PTR_RETURN(texture, GetHeight(), 0); }
unsigned int sfTexture_GetWidth(const sfTexture* texture) { CSFML_CALL_PTR_RETURN(texture, GetWidth(), 0); }