mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 20:40:11 +01:00
"wx.Joystick" --> "wx.adv.Joystick"
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Name: Joystick.py
|
||||
# Purpose: Demonstrate use of wx.Joystick
|
||||
# Purpose: Demonstrate use of wx.adv.Joystick
|
||||
#
|
||||
# Author: Jeff Grimmett (grimmtoo@softhome.net), adapted from original
|
||||
# .wdr-derived demo
|
||||
@@ -652,7 +652,7 @@ class AxisBar(wx.Gauge):
|
||||
|
||||
# This is what we will overlay on the gauge.
|
||||
# It reflects the actual value received from the
|
||||
# wx.Joystick.
|
||||
# wx.adv.Joystick.
|
||||
txt = str(self.rawvalue)
|
||||
|
||||
# Copy the default font, make it bold.
|
||||
@@ -817,7 +817,7 @@ class Axis(wx.Panel):
|
||||
class AxisPanel(wx.Panel):
|
||||
#
|
||||
# Contained herein is a panel that offers a graphical display
|
||||
# of the levels for all axes supported by wx.Joystick. If
|
||||
# of the levels for all axes supported by wx.adv.Joystick. If
|
||||
# your system doesn't have a particular axis, it will be
|
||||
# 'dummied' for transparent use.
|
||||
#
|
||||
@@ -962,13 +962,13 @@ def runTest(frame, nb, log):
|
||||
overview = """\
|
||||
<html>
|
||||
<body>
|
||||
<h1>wx.Joystick</h1>
|
||||
This demo illustrates the use of the wx.Joystick class, which is an interface to
|
||||
<h1>wx.adv.Joystick</h1>
|
||||
This demo illustrates the use of the wx.adv.Joystick class, which is an interface to
|
||||
one or more joysticks attached to your system.
|
||||
|
||||
<p>The data that can be retrieved from the joystick comes in four basic flavors.
|
||||
All of these are illustrated in the demo. In fact, this demo illustrates everything
|
||||
you <b>can</b> get from the wx.Joystick control.
|
||||
you <b>can</b> get from the wx.adv.Joystick control.
|
||||
|
||||
<ul>
|
||||
<li>Static information such as Manufacturer ID and model name,
|
||||
@@ -1033,7 +1033,7 @@ versus a four-way hat.
|
||||
|
||||
<h2>Caveats</h2>
|
||||
|
||||
The wx.Joystick control is in many ways incomplete at the C++ library level, but it is
|
||||
The wx.adv.Joystick control is in many ways incomplete at the C++ library level, but it is
|
||||
not insurmountable. In short, while the joystick interface <i>can</i> be event-driven,
|
||||
the wx.JoystickEvent class lacks event binders for all event types. Thus, you cannot
|
||||
rely on wx.JoystickEvents to tell you when something has changed, necessarilly.
|
||||
|
||||
Reference in New Issue
Block a user