Skip to main content

Simple utility to remap Panda3D events

Project description

Build Status Package Versions Panda3D Versions License

Panda3D Event Mapper

A simple utility to remap Panda3D events.


  • Remap events
  • Configure via PRC variables or an API
  • Handle keyboards, mice, and gamepads


Use pip to install the panda3d-eventmapper package:

pip install panda3d-eventmapper


import sys

from direct.showbase.ShowBase import ShowBase
import panda3d.core as p3d

import eventmapper

    'event-map-item-quit escape q\n'
    'event-map-item-move-forward raw-w\n'
    'event-map-item-move-backward raw-s\n'
    'event-map-item-move-left raw-a\n'
    'event-map-item-move-right raw-d\n'

class GameApp(ShowBase):
    def __init__(self):

        self.eventmapper = eventmapper.EventMapper()
        self.accept('quit', sys.exit)
        self.accept('move-forward', print, ['move forward'])
        self.accept('move-backward', print, ['move backward'])
        self.accept('move-left', print, ['move left'])
        self.accept('move-right', print, ['move right'])




Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for panda3d-eventmapper, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size panda3d_eventmapper-0.1.0-py2.py3-none-any.whl (4.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size panda3d-eventmapper-0.1.0.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page