a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
Include
 classes
 clib
 datatypes
 devices
  audio.i / .h
  bootblock.i / .h
  cd.i / .h
  clipboard.i / .h
  console.i / .h
  conunit.i / .h
  gameport.i / .h
  hardblocks.i / .h
  input.i / .h
  inputevent.i / .h
  keyboard.i / .h
  keymap.i / .h
  narrator.i / .h
  parallel.i / .h
  printer.i / .h
  prtbase.i / .h
  prtgfx.i / .h
  scsidisk.i / .h
  serial.i / .h
  timer.i / .h
  trackdisk.i / .h
 diskfont
 dos
 exec
 gadgets
 graphics
 hardware
 images
 intuition
 libraries
 pragma
 pragmas
 prefs
 proto
 reaction
 resources
 rexx
 utility
 workbench
GuruMeditation
Docs » Include » devices » gameport.i / .h
	IFND	DEVICES_GAMEPORT_I
DEVICES_GAMEPORT_I	SET	1
**
**	$VER: gameport.i 36.1 (5.11.1990)
**	Includes Release 45.1
**
**	Game Port device command definitions
**
**	(C) Copyright 1985-2001 Amiga, Inc.
**	    All Rights Reserved
**

   IFND  EXEC_TYPES_I
   INCLUDE  "exec/types.i"
   ENDC

   IFND	 EXEC_IO_I
   INCLUDE  "exec/io.i"
   ENDC


******* GamePort commands *******
   DEVINIT

   DEVCMD   GPD_READEVENT
   DEVCMD   GPD_ASKCTYPE
   DEVCMD   GPD_SETCTYPE
   DEVCMD   GPD_ASKTRIGGER
   DEVCMD   GPD_SETTRIGGER

******* GamePort structures *******

*  gpt_Keys
   BITDEF	GPT,DOWNKEYS,0
   BITDEF	GPT,UPKEYS,1

 STRUCTURE  GamePortTrigger,0
       UWORD   gpt_Keys	       ;key transition triggers
       UWORD   gpt_Timeout     ;time trigger (vertical blank units)
       UWORD   gpt_XDelta      ;X distance trigger
       UWORD   gpt_YDelta      ;Y distance trigger
       LABEL   gpt_SIZEOF

******* Controller Types ******
GPCT_ALLOCATED	  EQU	-1     ; allocated by another user
GPCT_NOCONTROLLER EQU	0

GPCT_MOUSE	  EQU	1
GPCT_RELJOYSTICK  EQU	2
GPCT_ABSJOYSTICK  EQU	3


******* Errors ******
GPDERR_SETCTYPE	  EQU	1      ; this controller not valid at this time

	ENDC	; DEVICES_GAMEPORT_I

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Razor 1911

FC
FLT
RZR
ANA

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se