

def get_element_usage_name(usage_page, usage):
    if (usage_page == 9):
        return ('button%d' % usage)
    try:
        return element_usage_names[(usage_page, usage)]
    except KeyError:
        return ('(%x, %x)' % (usage_page, usage))

dataset/ETHPy150Open ardekantur/pyglet/experimental/input/usage.py get_element_usage_name/original