summaryrefslogtreecommitdiff
path: root/include/eventconvert.h
Commit message (Collapse)AuthorAgeFilesLines
* dix: Add new internal event enums for gesture eventsPovilas Kanapickas2021-05-301-0/+3
|
* input: drop FP1616 macroPeter Hutterer2012-11-191-2/+0
| | | | | | | The double_to_f1616() functions do the same thing, and they're tested. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Keith Packard <keithp@keithp.com>
* Introduce a consistent coding styleKeith Packard2012-03-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is strictly the application of the script 'x-indent-all.sh' from util/modular. Compared to the patch that Daniel posted in January, I've added a few indent flags: -bap -psl -T PrivatePtr -T pmWait -T _XFUNCPROTOBEGIN -T _XFUNCPROTOEND -T _X_EXPORT The typedefs were needed to make the output of sdksyms.sh match the previous output, otherwise, the code is formatted badly enough that sdksyms.sh generates incorrect output. The generated code was compared with the previous version and found to be essentially identical -- "assert" line numbers and BUILD_TIME were the only differences found. The comparison was done with this script: dir1=$1 dir2=$2 for dir in $dir1 $dir2; do (cd $dir && find . -name '*.o' | while read file; do dir=`dirname $file` base=`basename $file .o` dump=$dir/$base.dump objdump -d $file > $dump done) done find $dir1 -name '*.dump' | while read dump; do otherdump=`echo $dump | sed "s;$dir1;$dir2;"` diff -u $dump $otherdump done Signed-off-by: Keith Packard <keithp@keithp.com> Acked-by: Daniel Stone <daniel@fooishbar.org> Acked-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* input: replace GRABTYPE_* with the InputLevel enumsPeter Hutterer2011-12-131-6/+0
| | | | | | | | They achieve the same thing, re-use the more generic InputLevel so we can convert to/fro easier. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
* include: Add an InputLevel enumChase Douglas2011-12-131-0/+6
| | | | | | | | Currently unused, but will be in the future. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Change GetXI2/XI/CoreType to just take a type argumentPeter Hutterer2011-12-101-3/+4
| | | | | | | | Avoids the dummy-event dance if we have an event type and need to get the matching XI2 type. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
* Input: Allow EventToCore to return multiple eventsDaniel Stone2011-02-171-1/+1
| | | | | | | | | Some event types (notably Expose and GraphicsExpose) require multiple events, a la XI 1.x. Bring the EventToCore API in line with EventToXI's and allow it to generate multiple events. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Re-enable RECORD extension.Chris Dekter2010-02-221-3/+3
| | | | | | | | | | | | | RECORD was disabled during the switch to internal events. This patch modifies the record callback to work with internal events instead of xEvents. The InternalEvents are converted to core/Xi events as needed. Since record is a loadable extension, the EventTo* calls must be externed. Signed-off-by: Chris Dekter <cdekter@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Fix missing parentheses in FP1616 macro.Peter Hutterer2009-05-181-1/+1
| | | | | Missing parens led to interesting results if an expression instead of a constant was passed in (ProcXIQueryPointer for example).
* Convert to using int32_t fixed point values on the wire.Peter Hutterer2009-04-191-0/+2
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* dix: add EventToXI2 and GetXI2Type.Peter Hutterer2009-03-201-0/+2
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* dix: change eventconvert to always return an array of xEventsPeter Hutterer2009-02-231-1/+1
| | | | | | | Just alloc the memory on demand rather than doing things with EventListPtrs etc. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* dix: add GetCoreType and GetXIType.Peter Hutterer2009-02-231-0/+2
| | | | | | | Convert from an InternalEvent type to the matching core/XI type. Currently only for a few events, those we actually need in the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* dix: add InternalEvent -> core/xi event conversion routines.Peter Hutterer2009-02-231-0/+34
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>