O'Reilly logo

Panda3D 1.6 Game Engine by Dave Mathews

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4: Taking Control: Events and User Input

Working with events

Question number

Answer

1

This allowed us to use the accept() method to register event responses.

2

The accept() method registers an event response. It tells the Panda3D event system what event we want to respond to and what method we want to call when that event is triggered.

Using keyboard input

Question number

Answer

1

A dictionary.

2

shift-alt-q

Utilizing mouse input

Question number

Answer

1

This will cause an error that will cause the program to abort and return the user to the desktop.

2

To determine if the mouse is inside the Panda3D window to prevent the error described in the answer to question one.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required