Joystick.Joystick Class Reference


Detailed Description

Simple little class to enable a game controller.

Simply map the buttons on the gamepad to keyboard events. When a joystick event is caught just create the approrpiate keyboard event and dispatch it.

Currently only supports one connected controller.

#include <class_joystick_1_1_joystick.h>

Inheritance diagram for Joystick.Joystick:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  __init__ ()
  sendMessage ()
  Sends a message.
  OnJoystick ()

Member Function Documentation

Joystick.Joystick.__init__ ( )
Joystick.Joystick.sendMessage ( )

Sends a message.

It can be called one of two ways: 1) sender.sendMessage( messageId, messageData ), where:

  • messageId is a string representing the message id
  • messageData is a tuple representing the message data 2) sender.sendMessage( message ), where:
  • message is a message created using sender.createMessage()

An optional keyword argument, requestUndo, specifies whether undo will be enabled for this message. By default, requestUndo is set to True,

Returns the sent message, or None if the message could not be created.

Reimplemented from MessagingAPI.MessageSender.

Joystick.Joystick.OnJoystick ( )

Joystick.Joystick Joystick.Joystick Joystick.Joystick Joystick.Joystick Joystick.Joystick Joystick.Joystick Joystick.Joystick Joystick.Joystick Joystick.Joystick Joystick.Joystick
Joystick.Joystick Joystick.Joystick Joystick.Joystick Joystick.Joystick Joystick.Joystick Joystick.Joystick Joystick.Joystick Joystick.Joystick Joystick.Joystick Joystick.Joystick