~fireclawthefox/panda3dcodecollection/trunk

« back to all changes in this revision

Viewing changes to character/extended Char controller/PlayerController.py

  • Committer: Fireclaw the Fox
  • Date: 2017-02-08 14:26:21 UTC
  • Revision ID: fireclawthefox@gmail.com-20170208142621-ljorcvore5ivwutx
Added gamepad support

- Panda3D's integrated gamepad support (preview, needs panda3d binaries build from input-overhaul branch)
- Added pyglet gamepad sample
- enhanced graphics for the extended Char controller demo

Show diffs side-by-side

added added

removed removed

Lines of Context:
304
304
                self.STATE_LEDGE_GRAB_LEFT,
305
305
                self.STATE_LEDGE_GRAB_RIGHT],
306
306
            self.STATE_LEDGE_GRAB_UP: [
 
307
                self.STATE_FALL,
307
308
                self.STATE_IDLE],
308
309
            self.STATE_LEDGE_GRAB_LEFT: [
309
310
                self.STATE_LEDGE_GRAB_UP,
479
480
        self.startControl()
480
481
        self.resumeAnimator()
481
482
        self.camera_handler.resumeCamera()
 
483
        self.doStep()
482
484
 
483
485
    def setStartPos(self, startPos):
484
486
        """Set the position of the character, should at least be called