import pygame
pygame.joystick.init()


def goo():
    print(pygame.joystick.get_init())
    print(pygame.joystick.get_count())


joysticks = [pygame.joystick.Joystick(x) for x in range(pygame.joystick.
    get_count())]
goo()
pygame.init()
while True:
    pygame.time.Clock().tick(27)
    for event in pygame.event.get():
        if event.type == pygame.JOYBUTTONUP:
            print(event.value)
        if event.type == pygame.JOYHATMOTION:
            print(event.value)

c4cb9ee48a56ba4b1c9a15164dfe91a353a081b3
<mask token>


def goo():
    print(pygame.joystick.get_init())
    print(pygame.joystick.get_count())


<mask token>

<mask token>
pygame.joystick.init()


def goo():
    print(pygame.joystick.get_init())
    print(pygame.joystick.get_count())


<mask token>
goo()
pygame.init()
while True:
    pygame.time.Clock().tick(27)
    for event in pygame.event.get():
        if event.type == pygame.JOYBUTTONUP:
            print(event.value)
        if event.type == pygame.JOYHATMOTION:
            print(event.value)

<mask token>
pygame.joystick.init()


def goo():
    print(pygame.joystick.get_init())
    print(pygame.joystick.get_count())


joysticks = [pygame.joystick.Joystick(x) for x in range(pygame.joystick.
    get_count())]
goo()
pygame.init()
while True:
    pygame.time.Clock().tick(27)
    for event in pygame.event.get():
        if event.type == pygame.JOYBUTTONUP:
            print(event.value)
        if event.type == pygame.JOYHATMOTION:
            print(event.value)

import pygame
pygame.joystick.init()


def goo():
    print(pygame.joystick.get_init())
    print(pygame.joystick.get_count())


joysticks = [pygame.joystick.Joystick(x) for x in range(pygame.joystick.
    get_count())]
goo()
pygame.init()
while True:
    pygame.time.Clock().tick(27)
    for event in pygame.event.get():
        if event.type == pygame.JOYBUTTONUP:
            print(event.value)
        if event.type == pygame.JOYHATMOTION:
            print(event.value)
