oldschool-toontown/toontown/cogdominium/CogdoFlyingInputManager.py

43 lines
1 KiB
Python
Raw Permalink Normal View History

from panda3d.core import CollisionSphere, CollisionNode, BitMask32, CollisionHandlerEvent, CollisionRay
2019-11-02 17:27:54 -05:00
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