Peter Hutterer
61ae0a5ca5
dmx: fix up dmxKeyCodeToKeySym for XKB-only.
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-09-13 10:30:15 +10:00
Peter Hutterer
9caba3e2ab
dmx: fix two calls to InitKeyboardDeviceStruct.
...
Takes RMLVO now instead of the keysyms directly.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-09-13 10:30:15 +10:00
Peter Hutterer
29b9a10dad
dmx: XkbComponentNamesRec doesn't have a keymap field anymore.
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-09-13 10:30:15 +10:00
Peter Hutterer
a6f3f6a63a
dmx: switch lnx-input and usb-input over to xkb-only.
...
kbd*Convert are nearly identical, it just asks for merging. Not today
though.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-09-13 10:30:15 +10:00
Peter Hutterer
5d81aee5f7
dmx: include xkbsrv.h to silence compiler.
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-09-13 10:30:15 +10:00
Peter Hutterer
6a500fdd4d
dmx: include exglobals.h for DeviceKeyPress and friends.
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-05 08:02:17 +10:00
Peter Hutterer
591c2f8758
dmx: typecast to InternalEvent* before mieqEnqueue.
...
Silences a few compiler warnings.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-05 08:01:55 +10:00
Peter Hutterer
15b425b5a6
dmx: move 'state' around to silence compiler warning.
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-05 08:01:45 +10:00
Peter Hutterer
9ffc3f280b
dmx: don't call InitKbdFeedbackClassDeviceStruct - doesn't exist anymore.
...
InitKeyboardDeviceStruct does the same task now.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-05 08:01:28 +10:00
Peter Hutterer
63155cf985
dmx: pass button/axis labels into the init functions (currently unset)
...
Currently only None labels are passed in, in the future these labels should
be whatever the respective buttions/axes are.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-05 08:00:08 +10:00
Peter Hutterer
af85973a0a
dmx: remove now-useless defines.
...
XI is mandatory so we can expect both to be defined.
2009-08-05 07:59:45 +10:00
Peter Hutterer
654d7a0260
Revert "dmx: claim we support XI 2."
...
XQueryInputVersion doesn't exist anymore and for now XI 1 support is good
enough.
This reverts commit 8da8a0fec4
.
2009-08-05 07:59:39 +10:00
Peter Hutterer
e7c950c627
dmx: fix a call to XkbSetRulesDflts, takes XkbRMLVOSet now.
2009-08-05 07:59:33 +10:00
Peter Hutterer
2cde9208ff
dmx: Enable/DisableDevice take a boolean variable now.
...
We want to send events here, so pass in TRUE.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-05 07:59:16 +10:00
Tomas Carnecky
57bed76e21
Remove dead EXTENSION_PROC_ARGS define
...
Signed-off-by: Tomas Carnecky <tom@dbservice.com>
2009-03-04 10:29:34 -05:00
Daniel Stone
32db27a7f8
Input: Remove modifierMap from core
...
We already have modmap (in the exact same format!) in XKB, so just use
that all the time, instead of duplicating the information.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-01-22 15:08:55 +11:00
Daniel Stone
6727ee9408
Input: Remove state from KeyClassRec
...
We already have state fully stored within XKB, so instead of duplicating it,
just generate the values to send to clients when required.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-01-22 15:08:55 +11:00
Daniel Stone
40877c6680
XKB: Make XKB mandatory
...
No more #ifdef XKB, because you can't disable the build, and no more
noXkbExtension either.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-01-22 15:06:25 +11:00
Dan Nicholson
e1c8ee2157
Don't reuse PKG_CHECK_MODULES identifiers
...
Using GL for the PKG_CHECK_MODULES identifier multiple times means only
the first call will actually be used. Later calls will be skipped due to
GL_CFLAGS and GL_LIBS already being set. This changes DRI to using a
different identifier and DMX to just reusing GL_CFLAGS.
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
2009-01-18 09:49:06 -08:00
Peter Hutterer
cb95642dc8
Remove #define NEED_EVENTS and NEED_REPLIES
...
A grep on xorg/* revealed there's no consumer of this define.
Quote Alan Coopersmith:
"The consumer was in past versions of the headers now located
in proto/x11proto - for instance, in X11R6.0's xc/include/Xproto.h,
all the event definitions were only available if NEED_EVENTS were
defined, and all the reply definitions required NEED_REPLIES.
Looks like Xproto.h dropped them by X11R6.3, which didn't have
the #ifdef's anymore, so these are truly ancient now."
Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
2008-12-12 11:43:32 +10:00
Alan Coopersmith
c1db925d10
Add atKeynames.h to libdmxinput_a_SOURCES so it's included in tarballs
...
Reported by geearu in #xorg-devel
2008-12-02 14:32:48 -08:00
Peter Hutterer
8d0cb507ae
dmx: avoid hilarious #define Xcalloc xcalloc game.
2008-10-17 10:19:11 +10:30
Peter Hutterer
8a23707b86
dmx: change remainder of manual EQ allocation to GetEventList().
2008-10-17 10:19:10 +10:30
Adam Jackson
7aa535708f
Fix more xcalloc stupidity.
...
Did I mention the hate? Pretty sure I mentioned the hate.
2008-10-08 16:25:59 -04:00
Adam Jackson
4fe80aa14a
I hate you xlib. Please die in a fire.
2008-10-08 16:22:35 -04:00
Adam Jackson
8a5b89e8e1
xalloc+memset(0) -> xcalloc
2008-10-06 15:36:51 -04:00
Kristian Høgsberg
25dd5ce077
Add atKeynames.h in hw/dmx/input and drop evil cross-ddx #include.
2008-07-28 12:35:03 -04:00
Peter Hutterer
874dcdb3bd
dmx: remove a ifndef XINPUT, XINPUT is always defined now.
2008-06-05 16:14:29 +09:30
Peter Hutterer
52752911ea
dmx: don't free event list after use.
2008-06-05 16:14:23 +09:30
Peter Hutterer
3ff2f3a00e
dmx: for now, don't acknowledge SDs.
2008-06-05 16:13:38 +09:30
Peter Hutterer
5bcd9e8953
dmx: learn about the existence of IsXExtensionPointer and IsXExtensionKeyboard
2008-06-05 16:13:23 +09:30
Peter Hutterer
8da8a0fec4
dmx: claim we support XI 2.
...
We don't really, yet, but at least we get the full device list this way.
2008-06-05 16:13:18 +09:30
Peter Hutterer
d10ba4591a
dmx: some more build fixes.
2008-06-05 16:13:03 +09:30
Peter Hutterer
00b4339168
dmx: remove some #if 0'd code.
2008-05-25 22:34:11 +09:30
Peter Hutterer
68b4f250ee
dmx: fix build.
...
Just because it builds, doesn't mean it works.
2008-05-14 16:18:48 +09:30
Peter Hutterer
e251c9e75a
Remove all traces of #ifdef XINPUT and the matching bits from the configure.ac
2008-04-25 16:49:35 +09:30
Eamon Walsh
5c03d13181
xace: add new hooks + access controls: XInput extension.
...
Introduces new dix API to lookup a device, dixLookupDevice(), which
replaces LookupDeviceIntRec and LookupDevice.
2007-09-28 08:02:00 -04:00
Eamon Walsh
4017d31902
devPrivates rework: since API is already broken, switch everything
...
over to new system.
Need to update documentation and address some remaining vestiges of
old system such as CursorRec structure, fb "offman" structure, and
FontRec privates.
2007-08-28 09:28:25 -04:00
Adam Jackson
4d76075dbb
Death to RCS tags.
2007-06-29 14:06:52 -04:00
Brian
e1dea151db
Implement a minor hack in dmxCheckFunctionKeys() to detect special keys.
...
Keep track of status of (left) alt/ctrl keys so that ctrl-alt-q to exit
can be detected. Not ideal, but works for now.
2007-04-03 11:21:50 -06:00
Brian
e44f106ffc
clean-up, debug code
2007-04-02 16:26:15 -06:00
Brian
8d8bc89277
fix formatting
2007-04-02 16:21:57 -06:00
Brian
3e482de7b1
checkpoint: more clean-up
2007-04-02 15:38:15 -06:00
Brian
76a7a5ca1f
formatting fixes
2007-04-02 15:24:05 -06:00
Brian
69baad321d
clean-up dmxCoreMotion() dmxCoreMotion2()
2007-04-02 15:21:22 -06:00
Brian
44eb15adee
checkpoint clean-up
2007-04-02 15:12:04 -06:00
Brian
0f873a9d4f
remove some debug code
2007-04-02 14:51:38 -06:00
Brian
3a0ce1084a
for completeness, init dummy's min/maxval[1] values (vertical axis)
2007-04-02 14:51:21 -06:00
Brian
12016f20f7
As for normal mouse device, init valuator maxval[] to real values, not zero.
2007-04-02 14:50:48 -06:00
Brian
0aaf28e563
In dmxBackendMouGetInfo() initialize the info->minval[], maxval[] arrays to the size of the backend display.
...
It seems that the changes to X input exposed a problem that wasn't detected
before. The axis clipping code in GetPointerEvents() uses those limits to
constrain the pointer's coordinate range. The max was zero so the pointer
couldn't move.
2007-04-02 12:41:30 -06:00
Brian
0013bf6ddb
undo 1280 valuator hack
2007-04-02 12:39:04 -06:00
Brian
08a88d1803
Pass num_valuators=0 for ButtonPress/Release. This seems to fix the button coordinate problem
2007-04-02 12:29:37 -06:00
Brian
70683e338d
formatting fixes
2007-04-02 12:29:37 -06:00
Brian
73fdc16bc4
formatting fixes
2007-03-30 16:07:26 -06:00
Brian
ebdc8ce5c1
Checkpoint DMX updates: things are working much better now, but still not 100% right.
...
Use new dmxCoreMotion2() function which enqueues motion events with
GetPointerEvents()/mieqEnqueue().
The clipAxis() code in GetPointerEvents() is causing some grief. The
limits seem to have always been (0,0) according to the original calls
to InitValuatorAxisStruct() in dmxinputinit.c.
Terrible hack for now: Call InitValuatorAxisStruct() with hard-coded max
values of 1280 (my screen width).
2007-03-30 16:05:46 -06:00
Brian
3c7413e0c2
Tweak some parameters, etc. Things seem a little better now, but still a ways to go.
2007-03-30 14:07:04 -06:00
Brian
7989dacdcb
num_valuators=1 for GetPointerEvents(), hack ButtonPress/Release position
2007-03-30 13:44:24 -06:00
Brian
1ea842960f
more debug
2007-03-30 13:43:15 -06:00
Brian
92e8cdbd32
Checkpoint fixes to DMX for X input changes.
...
Xdmx builds and runs now.
Keyboard seems OK, and mouse pointer moves, but everything else is flakey.
Something is still seriously wrong.
2007-03-30 13:19:33 -06:00
Keith Packard
20e9144c07
Add $(DIX_CFLAGS) to remaining Makefile.am files
2006-11-07 12:49:28 -08:00
Adam Jackson
0aaac95b0d
Remove RCS tags. Fix Xprint makefile braindamage.
2006-07-21 17:56:00 -04:00
Daniel Stone
84683f19b4
get rid of XFree86LOADER, XFree86Server, XFree86Module, and IN_MODULE
...
Get rid of almost all uses of these definitions. They're still defined for
delinquent out-of-tree drivers, and also for the Mesa build. As well as
for miinitext.c. But largely gone.
2006-07-18 18:17:38 -04:00
Daniel Stone
32be08ba72
Remove horrendously ugly DDX backward-compatibility.
2006-06-01 19:22:38 +00:00
Daniel Stone
fd8bde8bb0
Remove -xkbmap argument.
2006-05-29 11:14:03 +00:00
Adam Jackson
6545051902
Coverity #1003 , #1004 : Two more useless null checks.
2006-04-14 23:10:59 +00:00
Adam Jackson
ab1d420022
Coverity #1005 : Avoid a null deref.
2006-04-14 23:09:38 +00:00
Adam Jackson
d01e0956a8
Coverity #1007 : Fix a silly null check.
2006-04-14 23:08:10 +00:00
Adam Jackson
ff6f88348c
More warning cleanup.
2006-03-29 01:05:09 +00:00
Alexander Gottwald
43324132af
Added Mesa include directory
2006-02-22 16:08:56 +00:00
Kevin E Martin
7c00afd0ec
Define XFree86Server only where it is required.
2005-12-02 06:02:45 +00:00
Kevin E Martin
30c1369bf5
Add support for building DMX config and examples programs Add missing files
...
to EXTRA_DIST Install Xdmx man page
2005-10-06 02:35:22 +00:00
Alan Coopersmith
9657e0e9de
Don't try to build dmx/input/lnx-*.c if <linux/keyboard.h> isn't found
...
Don't try to build dmx/input/usb-*.c if <linux/input.h> isn't found
Replace -rdynamic with $(LD_EXPORT_SYMBOLS_FLAG) for compatibility with
compilers other than gcc
2005-08-24 15:18:06 +00:00
Kevin E Martin
86529c07d6
Fix distcheck for server
2005-07-28 23:28:34 +00:00
Kevin E Martin
02427d4d04
Add support for building Xdmx and Xvfb
2005-07-12 01:20:36 +00:00
Kevin E Martin
e348ac4b4d
Prepare Xdmx and Xvfb for modularization by adding appropriate #include
...
<{dix,dmx}-config.h> to the source files.
2005-07-12 00:52:48 +00:00
Daniel Stone
ded56b1a74
Adding initial build system.
2005-07-01 20:29:53 +00:00
Daniel Stone
292c4cff26
Fix includes right throughout the Xserver tree:
...
change "foo.h" to <X11/foo.h> for core headers, e.g. X.h, Xpoll.h;
change "foo.h", "extensions/foo.h" and "X11/foo.h" to
<X11/extensions/foo.h> for extension headers, e.g. Xv.h;
change "foo.[ch]" to <X11/Xtrans/foo.[ch]> for Xtrans files.
2005-04-20 12:25:48 +00:00
Rik Faith
d374dffb20
When using DMX console input, make detached screens display as grey (vs.
...
white for attached and black for dead-space).
2004-07-28 00:28:00 +00:00
Rik Faith
a5c9b3229c
Bugzilla #817
2004-07-07 04:32:52 +00:00
Kevin E Martin
7976ee51af
Add Distributed Multihead X (DMX) support
2004-06-30 20:06:56 +00:00