<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def main():
 """Just print out some event infomation when the gamepad is used."""

    while 1:
        events = get_gamepad()
        for event in events:
            print(event.ev_type, event.code, event.state)