peng3d/actor/player.py
def registerEventHandlers(self):
        """
        Registers the up and down handlers.
        
        Also registers a scheduled function every 60th of a second, causing pyglet to redraw your window with 60fps.
        """
        # Crouch/fly down
        self.peng.keybinds.add(self.peng.cfg["controls.controls.crouch"],"peng3d:actor.%s.player.controls.crouch"%self.actor.uuid,self.on_crouch_down,False)
        # Jump/fly up
        self.peng.keybinds.add(self.peng.cfg["controls.controls.jump"],"peng3d:actor.%s.player.controls.jump"%self.actor.uuid,self.on_jump_down,False)
        pyglet.clock.schedule_interval(self.update,1.0/60)
def registerEventHandlers(self):
        # Crouch/fly down
        self.peng.keybinds.add(self.peng.cfg["controls.controls.crouch"],"peng3d:actor.%s.player.controls.crouch"%self.actor.uuid,self.on_crouch_down,False)
        # Jump/fly up
        self.peng.keybinds.add(self.peng.cfg["controls.controls.jump"],"peng3d:actor.%s.player.controls.jump"%self.actor.uuid,self.on_jump_down,False)
        pyglet.clock.schedule_interval(self.update,1.0/60)
def registerEventHandlers ( self ) : # Crouch/fly down self . peng . keybinds . add ( self . peng . cfg [ "controls.controls.crouch" ] , "peng3d:actor.%s.player.controls.crouch" % self . actor . uuid , self . on_crouch_down , False ) # Jump/fly up self . peng . keybinds . add ( self . peng . cfg [ "controls.controls.jump" ] , "peng3d:actor.%s.player.controls.jump" % self . actor . uuid , self . on_jump_down , False ) pyglet . clock . schedule_interval ( self . update , 1.0 / 60 )
Registers the up and down handlers.
        
        Also registers a scheduled function every 60th of a second, causing pyglet to redraw your window with 60fps.
Registers the up and down handlers . Also registers a scheduled function every 60th of a second causing pyglet to redraw your window with 60fps .