INNER CODE UNIT · Python

i

cadaver/turso3d · ThirdParty/SDL/src/joystick/sort_controllers.py:34

        i=(i + 1)

    return -1

def get_crc_from_entry(entry):
    crc = ""
    line = "".join(entry)
    bindings = line.split(",")
    pos = find_element("crc:", bindings)
    if pos >= 0:
        crc = bindings[pos][4:]
    return crc

def save_controller(line):
    global controllers
    match = split_pattern.match(line)
    entry = [ match.group(1), match.group(2), match.group(3) ]
    bindings = sorted(match.group(4).split(","))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…