예제 #1
0
파일: Input.cpp 프로젝트: TheMiss/SFML
////////////////////////////////////////////////////////////
/// Get the mouse Y position
////////////////////////////////////////////////////////////
int sfInput_GetMouseY(const sfInput* input)
{
    CSFML_CALL_PTR_RETURN(input, GetMouseY(), 0);
}
예제 #2
0
파일: Input.cpp 프로젝트: TheMiss/SFML
////////////////////////////////////////////////////////////
/// 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);
}
예제 #3
0
파일: Input.cpp 프로젝트: TheMiss/SFML
////////////////////////////////////////////////////////////
/// 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);
}
예제 #4
0
파일: Input.cpp 프로젝트: TheMiss/SFML
////////////////////////////////////////////////////////////
/// 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);
}
예제 #5
0
파일: Input.cpp 프로젝트: TheMiss/SFML
////////////////////////////////////////////////////////////
/// 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);
}
예제 #6
0
파일: Texture.cpp 프로젝트: deadalnix/CSFML
unsigned int sfTexture_GetHeight(const sfTexture* texture)
{
    CSFML_CALL_PTR_RETURN(texture, GetHeight(), 0);
}
예제 #7
0
파일: Texture.cpp 프로젝트: deadalnix/CSFML
unsigned int sfTexture_GetWidth(const sfTexture* texture)
{
    CSFML_CALL_PTR_RETURN(texture, GetWidth(), 0);
}