Python-Dateien

Neu laden
Gefunden: 162 Datei(en)
editor_script_player.py
# Source Generated with Decompyle++
# File: editor_script_player.pyc (Python 3.13)

from  import game
KC_LEFTBUTTON = 142
KC_RIGHTBUTTON = 143
KC_MIDDLEBUTTON = 144

def init():
    Env = Env
    import neox_editor.Environment
    Env.ConnectToPycharm()
    Env.Init()
    return 0


def terminate():
    Env = Env
    import neox_editor.Environment
    Env.Terminate()
    return 0


def updateFrameWithDetaTime(detaTime):
    GameLoop = GameLoop
    import neox_editor.GameLoop
    GameLoop.tick()


def updateFrame():
    updateFrameWithDetaTime(16.6667)


def onMouseMove(x, y, last_event_type):
    on_mouse_move = on_mouse_move
    import neox_editor.EditorInput
    on_mouse_move(x, y)


def onMouseWheel(zDelta, last_event_type):
    on_mouse_wheel = on_mouse_wheel
    import neox_editor.EditorInput
    on_mouse_wheel(None, zDelta, None)


def onMousePressed(x, y, button_id, last_event_type):
    on_mouse_msg = on_mouse_msg
    import neox_editor.EditorInput
    if button_id < KC_LEFTBUTTON:
        on_mouse_msg(game.MSG_MOUSE_DOWN, game.MOUSE_BUTTON_LEFT)
        return None
    if None < KC_RIGHTBUTTON:
        on_mouse_msg(game.MSG_MOUSE_DOWN, game.MOUSE_BUTTON_RIGHT)
        return None


def onMouseReleased(x, y, button_id, last_event_type):
    on_mouse_msg = on_mouse_msg
    import neox_editor.EditorInput
    if button_id < KC_LEFTBUTTON:
        on_mouse_msg(game.MSG_MOUSE_UP, game.MOUSE_BUTTON_LEFT)
        return None
    if None < KC_RIGHTBUTTON:
        on_mouse_msg(game.MSG_MOUSE_UP, game.MOUSE_BUTTON_RIGHT)
        return None


def onKeyPressed(key, last_event_type):
    on_key_event = on_key_event
    import neox_editor.EditorInput
    KEY_MAP = KEY_MAP
    import editor_key_map
    if key in KEY_MAP:
        on_key_event(game.MSG_KEY_DOWN, KEY_MAP[key])
        return None


def onKeyReleased(key, last_event_type):
    on_key_event = on_key_event
    import neox_editor.EditorInput
    KEY_MAP = KEY_MAP
    import editor_key_map
    if key in KEY_MAP:
        on_key_event(game.MSG_KEY_UP, KEY_MAP[key])
        return None