mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-11-01 01:07:54 +00:00
42 lines
1 KiB
Python
42 lines
1 KiB
Python
from pandac.PandaModules 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
|