Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

# dmxconsole.c File Reference

`#include "dmxinputinit.h"`
`#include "dmxevents.h"`
`#include "dmxconsole.h"`
`#include "dmxcommon.h"`
`#include "dmxscrinit.h"`
`#include "dmxcb.h"`
`#include "dmxsync.h"`
`#include "inputstr.h"`
`#include "input.h"`
`#include "mipointer.h"`
`#include "windowstr.h"`

## Data Structures

struct | _myPrivate

## Functions

pointer | dmxConsoleCreatePrivate (DeviceIntPtr pDevice)
void | dmxConsoleDestroyPrivate (pointer private)
void | dmxConsoleUpdateInfo (pointer private, DMXUpdateType type, WindowPtr pWindow)
void | dmxConsoleUpdatePosition (pointer private, int x, int y)
void | dmxConsoleCollectEvents (DevicePtr pDev, dmxMotionProcPtr motion, dmxEnqueueProcPtr enqueue, dmxCheckSpecialProcPtr checkspecial, DMXBlockType block)
void | dmxConsoleReInit (DevicePtr pDev)
void | dmxConsoleInit (DevicePtr pDev)
void | dmxConsoleMouGetInfo (DevicePtr pDev, DMXLocalInitInfoPtr info)
void | dmxConsoleKbdGetInfo (DevicePtr pDev, DMXLocalInitInfoPtr info)
int | dmxConsoleFunctions (pointer private, DMXFunctionType function)
void | dmxConsoleCapture (DMXInputInfo *dmxInput)
void | dmxConsoleUncapture (DMXInputInfo *dmxInput)

## Detailed Description

This file implements the console input devices.

## Function Documentation

void dmxConsoleCapture | ( | DMXInputInfo * | dmxInput | ) |

| This routine is used to warp the pointer into the console window from anywhere on the screen. It is used when backend and console input are both being taken from the same X display.

void dmxConsoleCollectEvents | ( | DevicePtr | pDev,
|  | dmxMotionProcPtr | motion,
|  | dmxEnqueueProcPtr | enqueue,
|  | dmxCheckSpecialProcPtr | checkspecial,
|  | DMXBlockType | block
| ) |

| Collect all pending events from the console's display. Plase these events on the server event queue using the motion and enqueue routines. The checkspecial routine is used to check for special keys that need handling. block tells if signals should be blocked when updating the event queue.

pointer dmxConsoleCreatePrivate | ( | DeviceIntPtr | pDevice | ) |

| Create the private area for pDevice.

void dmxConsoleDestroyPrivate | ( | pointer | private | ) |

| If private is non-NULL, free its associated memory.

int dmxConsoleFunctions | ( | pointer | private,
|  | DMXFunctionType | function
| ) |

| Handle special console-only keys.

void dmxConsoleInit | ( | DevicePtr | pDev | ) |

| Initialized the console device described by pDev.

void dmxConsoleKbdGetInfo | ( | DevicePtr | pDev,
|  | DMXLocalInitInfoPtr | info
| ) |

| Fill in the info structure for the specified pDev. Only used for keyboard.

void dmxConsoleMouGetInfo | ( | DevicePtr | pDev,
|  | DMXLocalInitInfoPtr | info
| ) |

| Fill in the info structure for the specified pDev. Only used for pointers.

void dmxConsoleReInit | ( | DevicePtr | pDev | ) |

| Re-initialized the console device described by pDev (after a reconfig).

void dmxConsoleUncapture | ( | DMXInputInfo * | dmxInput | ) |

| Undo the capture that was done by dmxConsoleCapture.

void dmxConsoleUpdateInfo | ( | pointer | private,
|  | DMXUpdateType | type,
|  | WindowPtr | pWindow
| ) |

| Whenever the window layout (size, position, stacking order) might be changed, this routine is called with the pWindow that changed and the type of change. This routine is called in a conservative fashion: the actual layout of the windows of the screen might not have had any human-visible changes.

void dmxConsoleUpdatePosition | ( | pointer | private,
|  | int | x,
|  | int | y
| ) |

| This routine gets called from #dmxCoreMotion for each motion. This allows the console's notion of the cursor postion to change when another input device actually caused the change.