Beispiel #1
0
// Check if a mouse button is pressed
// Returns true if the button is pressed, false otherwise
func (self MouseButton) IsButtonPressed() bool {
	// sfBool sfMouse_isButtonPressed(sfMouseButton button)
	return C.sfMouse_isButtonPressed(C.sfMouseButton(self)) == 1
}
Beispiel #2
0
// Mouse buttons
// Check if a mouse button is pressed
// \param button Button to check
// \return sfTrue if the button is pressed, sfFalse otherwise
// sfBool sfMouse_isButtonPressed(sfMouseButton button);
func (self MouseButton) IsButtonPressed() bool {
	return C.sfMouse_isButtonPressed(C.sfMouseButton(self)) == 1
}