oldschool-toontown/toontown/cogdominium/CogdoFlyingInputManager.py
Little Cat 1801d2b9fb
all: replace pandac.PandaModules imports.
UD/AI + Client boots up.
2022-12-16 20:40:57 -04:00

42 lines
1 KiB
Python

from panda3d.core import CollisionSphere, CollisionNode, BitMask32, CollisionHandlerEvent, CollisionRay
from toontown.minigame import ArrowKeys
class CogdoFlyingInputManager:
def __init__(self):
self.arrowKeys = ArrowKeys.ArrowKeys()
self.arrowKeys.disable()
def enable(self):
self.arrowKeys.setPressHandlers([self.__upArrowPressed,
self.__downArrowPressed,
self.__leftArrowPressed,
self.__rightArrowPressed,
self.__controlPressed])
self.arrowKeys.enable()
def disable(self):
self.arrowKeys.clearPressHandlers()
self.arrowKeys.disable()
def destroy(self):
self.disable()
self.arrowKeys.destroy()
self.arrowKeys = None
self.refuelLerp = None
return
def __upArrowPressed(self):
pass
def __downArrowPressed(self):
pass
def __leftArrowPressed(self):
pass
def __rightArrowPressed(self):
pass
def __controlPressed(self):
pass