[ Previous | Next | Contents | Glossary | Home | Search ]
The graPHIGS Programming Interface : Subroutine Reference

GPPDMO - Set Physical Device Mode

GPPDMO (wsid, category, device, mode)

Purpose

Use GPPDMO to enable or disable the physical input device from generating input values to the set of logical input devices to which it is connected.

The default state of all physical devices is 2=ENABLED , if the physical device is actually present. The set of physical devices that are connected to a specific logical input device can be obtained by issuing the Inquire Source Physical Device (GPQSPD) subroutine.

Parameters

wsid -- specified by user, fullword integer

Workstation identifier.

category -- specified by user, fullword integer

Physical device category (1=BUTTON, 2=SCALAR, 3=2D_VECTOR )

device -- specified by user, fullword integer

Physical device number (>=1)

mode -- specified by user, fullword integer

Physical device mode (1=DISABLED, 2=ENABLED )

Error Codes

25
SPECIFIED WORKSTATION DOES NOT EXIST
38
WORKSTATION HAS ONLY OUTPUT CAPABILITIES
140
DEVICE NUMBER < ONE OR DEVICE NOT AVAILABLE
160
PHYSICAL INPUT DEVICE CATEGORY IS INVALID
163
PHYSICAL DEVICE MODE IS INVALID
169
PHYSICAL INPUT DEVICE CANNOT BE DISABLED

Related Subroutines

GPEPD
Emulate Physical Device
GPQPDC
Inquire Physical Device Characteristics
GPQSPD
Inquire Source Physical Device

RCP code

201344769 (X'0C004701')


[ Previous | Next | Contents | Glossary | Home | Search ]