You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: joystick.go
    path of file: ./repos/pixel/pixelgl
    
    the code of the file until where you have to start completion: package pixelgl

import (
	"github.com/go-gl/glfw/v3.3/glfw"
)

// Joysti
    
func (js *joystickState) getButton(joystick Joystick, button int) bool {
	// Check that the joystick and button is valid, return false by default
	if js.buttons[joystick] == nil || button >= len(js.buttons[joystick]) || button < 0 {
		return false
	}
	return js.buttons[joystick][byte(button)] == glfw.Press
}