head 1.2; access; symbols netbsd-7-2-RELEASE:1.1.1.3 netbsd-7-1-2-RELEASE:1.1.1.3 netbsd-7-1-1-RELEASE:1.1.1.3 netbsd-7-1:1.1.1.3.0.14 netbsd-7-1-RELEASE:1.1.1.3 netbsd-7-1-RC2:1.1.1.3 netbsd-7-1-RC1:1.1.1.3 netbsd-7-0-2-RELEASE:1.1.1.3 netbsd-7-0-1-RELEASE:1.1.1.3 netbsd-7-0:1.1.1.3.0.12 netbsd-7-0-RELEASE:1.1.1.3 netbsd-7-0-RC3:1.1.1.3 netbsd-7-0-RC2:1.1.1.3 netbsd-7-0-RC1:1.1.1.3 netbsd-5-2-3-RELEASE:1.1.1.1 netbsd-5-1-5-RELEASE:1.1.1.1 netbsd-6-0-6-RELEASE:1.1.1.3 netbsd-6-1-5-RELEASE:1.1.1.3 netbsd-7:1.1.1.3.0.10 netbsd-7-base:1.1.1.3 netbsd-6-1-4-RELEASE:1.1.1.3 netbsd-6-0-5-RELEASE:1.1.1.3 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.3 riastradh-drm2:1.1.1.3.0.8 riastradh-drm2-base:1.1.1.3 netbsd-6-1-3-RELEASE:1.1.1.3 netbsd-6-0-4-RELEASE:1.1.1.3 netbsd-5-2-2-RELEASE:1.1.1.1 netbsd-5-1-4-RELEASE:1.1.1.1 netbsd-6-1-2-RELEASE:1.1.1.3 netbsd-6-0-3-RELEASE:1.1.1.3 netbsd-5-2-1-RELEASE:1.1.1.1 netbsd-5-1-3-RELEASE:1.1.1.1 netbsd-6-1-1-RELEASE:1.1.1.3 xorg-server-1-10-6:1.1.1.3 netbsd-6-1:1.1.1.3.0.6 netbsd-6-0-2-RELEASE:1.1.1.3 netbsd-6-1-RELEASE:1.1.1.3 netbsd-6-1-RC4:1.1.1.3 netbsd-6-1-RC3:1.1.1.3 netbsd-6-1-RC2:1.1.1.3 netbsd-6-1-RC1:1.1.1.3 netbsd-5-2:1.1.1.1.0.8 netbsd-6-0-1-RELEASE:1.1.1.3 netbsd-5-2-RELEASE:1.1.1.1 netbsd-5-2-RC1:1.1.1.1 netbsd-6-0:1.1.1.3.0.4 netbsd-6-0-RELEASE:1.1.1.3 netbsd-6-0-RC2:1.1.1.3 netbsd-6-0-RC1:1.1.1.3 netbsd-6:1.1.1.3.0.2 netbsd-6-base:1.1.1.3 netbsd-5-1-2-RELEASE:1.1.1.1 netbsd-5-1-1-RELEASE:1.1.1.1 xorg-server-1-10-3:1.1.1.3 mrg-xorg-server-1-9-5-pre-1-10-3:1.1.1.2 xorg-server-1-9-5:1.1.1.2 xorg-server-1-9-2:1.1.1.2 netbsd-5-1:1.1.1.1.0.6 netbsd-5-1-RELEASE:1.1.1.1 netbsd-5-1-RC4:1.1.1.1 netbsd-5-1-RC3:1.1.1.1 netbsd-5-1-RC2:1.1.1.1 netbsd-5-1-RC1:1.1.1.1 netbsd-5-0-2-RELEASE:1.1.1.1 xorg-server-1-6-5:1.1.1.1 xorg-server-1-6-3:1.1.1.1 netbsd-5-0-1-RELEASE:1.1.1.1 xorg-server-1-6-2:1.1.1.1 xorg-server-1-6-1-901:1.1.1.1 netbsd-5-0:1.1.1.1.0.4 netbsd-5-0-RELEASE:1.1.1.1 netbsd-5-0-RC4:1.1.1.1 netbsd-5-0-RC3:1.1.1.1 netbsd-5-0-RC2:1.1.1.1 netbsd-5-0-RC1:1.1.1.1 netbsd-5:1.1.1.1.0.2 netbsd-5-base:1.1.1.1 xorg-server-1-4-2:1.1.1.1 xorg:1.1.1; locks; strict; comment @# @; 1.2 date 2016.08.11.00.04.28; author mrg; state dead; branches; next 1.1; commitid FQxwnZNPy5ZgOOhz; 1.1 date 2008.07.31.19.50.28; author mrg; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2008.07.31.19.50.28; author mrg; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2010.11.23.05.21.15; author mrg; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2011.08.02.06.56.49; author mrg; state Exp; branches; next ; desc @@ 1.2 log @first merge of netbsd changes. not tested yet. @ text @
Go to the source code of this file.
Functions | |
| pointer | dmxConsoleCreatePrivate (DeviceIntPtr pDevice) |
| void | dmxConsoleDestroyPrivate (pointer private) |
| void | dmxConsoleInit (DevicePtr pDev) |
| void | dmxConsoleReInit (DevicePtr pDev) |
| void | dmxConsoleMouGetInfo (DevicePtr pDev, DMXLocalInitInfoPtr info) |
| void | dmxConsoleKbdGetInfo (DevicePtr pDev, DMXLocalInitInfoPtr info) |
| void | dmxConsoleCollectEvents (DevicePtr pDev, dmxMotionProcPtr motion, dmxEnqueueProcPtr enqueue, dmxCheckSpecialProcPtr checkspecial, DMXBlockType block) |
| int | dmxConsoleFunctions (pointer private, DMXFunctionType function) |
| void | dmxConsoleUpdatePosition (pointer private, int x, int y) |
| void | dmxConsoleCapture (DMXInputInfo *dmxInput) |
| void | dmxConsoleUncapture (DMXInputInfo *dmxInput) |
| void | dmxConsoleUpdateInfo (pointer private, DMXUpdateType, WindowPtr pWindow) |
|
|
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. |
|
||||||||||||||||||||||||
|
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. |
|
|
Create the private area for pDevice. |
|
|
If private is non-NULL, free its associated memory. |
|
||||||||||||
|
Handle special console-only keys. |
|
|
Initialized the console device described by pDev. |
|
||||||||||||
|
Fill in the info structure for the specified pDev. Only used for keyboard. |
|
||||||||||||
|
Fill in the info structure for the specified pDev. Only used for pointers. |
|
|
Re-initialized the console device described by pDev (after a reconfig). |
|
|
Undo the capture that was done by dmxConsoleCapture. |
|
||||||||||||||||
|
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. |
|
||||||||||||||||
|
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. |
Go to the source code of this file.
Functions | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| pointer | dmxConsoleCreatePrivate (DeviceIntPtr pDevice) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| void | dmxConsoleDestroyPrivate (pointer private) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| void | dmxConsoleInit (DevicePtr pDev) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| void | dmxConsoleReInit (DevicePtr pDev) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| void | dmxConsoleMouGetInfo (DevicePtr pDev, DMXLocalInitInfoPtr info) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| void | dmxConsoleKbdGetInfo (DevicePtr pDev, DMXLocalInitInfoPtr info) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| void | dmxConsoleCollectEvents (DevicePtr pDev, dmxMotionProcPtr motion, dmxEnqueueProcPtr enqueue, dmxCheckSpecialProcPtr checkspecial, DMXBlockType block) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| int | dmxConsoleFunctions (pointer private, DMXFunctionType function) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| void | dmxConsoleUpdatePosition (pointer private, int x, int y) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| void | dmxConsoleKbdSetCtrl (pointer private, KeybdCtrl *ctrl) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| void | dmxConsoleCapture (DMXInputInfo *dmxInput) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| void | dmxConsoleUncapture (DMXInputInfo *dmxInput) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| void | dmxConsoleUpdateInfo (pointer private, DMXUpdateType, WindowPtr pWindow) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| void dmxConsoleCapture | ( | DMXInputInfo * | dmxInput | ) | d58 1 d60 19 a78 14 |
| void dmxConsoleCollectEvents | ( | DevicePtr | pDev, | a85 1a86 5 | dmxMotionProcPtr | motion, | |
| d88 2 a89 2 | dmxEnqueueProcPtr | enqueue, | a91 1a92 5 | dmxCheckSpecialProcPtr | checkspecial, | ||
| d94 2 a95 2 | DMXBlockType | block | a98 22 | ) |
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.
References dmxCommonRestoreState(), dmxCommonSaveState(), dmxConsoleDraw(), dmxConsoleMoveAbsolute(), dmxConsoleMoveRelative(), dmxConsoleUncapture(), DMXDBG2, DMXDBG4, DMXDBG5, DMXDBG6, _myPrivate::dmxInput, _myPrivate::height, and _myPrivate::width.
| pointer dmxConsoleCreatePrivate | ( | DeviceIntPtr | pDevice | ) | d100 2 a102 11
Create the private area for pDevice.
| void dmxConsoleDestroyPrivate | ( | pointer | private | ) | a104 20
If private is non-NULL, free its associated memory.
| int dmxConsoleFunctions | ( | pointer | private, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| d106 2 a107 2 | DMXFunctionType | function | d111 2 a112 2 | ) | d114 1 d116 27 a142 3 |
| void dmxConsoleInit | ( | DevicePtr | pDev | ) |
| void dmxConsoleKbdGetInfo | ( | DevicePtr | pDev, | a199 1d201 3 a203 2 | DMXLocalInitInfoPtr | info | d207 2 a208 2 | ) | d210 1 d212 27 a238 3 |
| void dmxConsoleKbdSetCtrl | ( | pointer | private, | a266 1d268 3 a270 2 | KeybdCtrl * | ctrl | d274 2 a275 2 | ) | d277 1 d279 19 a297 9 |
| void dmxConsoleMouGetInfo | ( | DevicePtr | pDev, | a304 1d306 3 a308 2 | DMXLocalInitInfoPtr | info | d312 2 a313 2 | ) | d315 1 d317 27 a343 3 |
| void dmxConsoleReInit | ( | DevicePtr | pDev | ) | a372 4 |
Re-initialized the console device described by pDev (after a reconfig).
a373 16References dmxConsoleComputeWidthHeight(), and dmxConsoleDraw().
| void dmxConsoleUncapture | ( | DMXInputInfo * | dmxInput | ) |
| void dmxConsoleUpdateInfo | ( | pointer | private, | a400 1d402 3 a404 2 | DMXUpdateType | type, | a406 1d408 3 a410 2 | WindowPtr | pWindow | d414 2 a415 2 | ) | d417 1 d419 19 a437 12 |
| void dmxConsoleUpdatePosition | ( | pointer | private, | a444 1d446 3 a448 2 | int | x, | a450 1d452 3 a454 2 | int | y | d458 2 a459 2 | ) | d461 1 d463 14 a476 9 |