aboutsummaryrefslogtreecommitdiff
path: root/src/emuMB.c
Commit message (Collapse)AuthorAge
* Disable middle mouse button emulation when a middle mouse button event is ↵Michael Chapman2009-01-13
| | | | | | | registered Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit 0592d97fbb5a1241ee79397ce9203346d050a9f9)
* emuMB: add EvdevMBEmuOn and call from EvdevOn to register wakeup handlers.Peter Hutterer2008-11-03
| | | | | | | | This got broken in b0737bdbd1f6e601eb4984b6f4cb49279190984c, when the EmuMBPreInit call was removed from EvdevOn. As a result, VT switching away and back wouldn't restore the wakeup handlers and mouse button presses disappeared. (cherry picked from commit af096e8c5d8b425f725a37bf4a98e205e70716e9)
* emulate MB: fix confusing log message.Peter Hutterer2008-11-03
| | | | | | | | If we're forcing MB emulation behaviour as per config, then at least state whether we're forcing it off or on. Found by Michel Dänzer. (cherry picked from commit 0f8fcfccb3251ee3df80d90ae5d7df638722d24e)
* MB emulation timeout is stored as Time, make the property 32-bit too.Peter Hutterer2008-10-23
| | | | (cherry picked from commit d348eb8ce78640363c159e1a4fdbfa9b596fa5bb)
* Tidy up evdev.hPeter Hutterer2008-10-14
| | | | | | This includes shuffling some functions around so we don't need the prototypes in evdev.h. (cherry picked from commit 0405f7b17fb0ce5cadcc6c5aa6eeb61bdacdf9cd)
* Register property handler from within the modules, not the main evdev file.Peter Hutterer2008-10-14
| | | | (cherry picked from commit cefedeb205291001e7e47b7516de261dbccce059)
* Clean up program flow - don't call PreInit for "modules" on DEVICE_INIT.Peter Hutterer2008-10-14
| | | | | | | Call the PreInit functions for MB Emulation, wheel emu, and draglock during PreInit, not on DEVICE_INIT. This way, we only parse the options once and don't overwrite with defaults when coming back from a VT switch. (cherry picked from commit b0737bdbd1f6e601eb4984b6f4cb49279190984c)
* Add checkonly handling to property handlers.Peter Hutterer2008-10-11
| | | | | If checkonly is TRUE, we can only check if applying the value would succeed. The value is actually applied if checkonly is FALSE.
* Stricter value checking for property changes.Peter Hutterer2008-10-11
|
* Remove useless initialization of rc.Peter Hutterer2008-10-02
|
* Add evdev-properties.h file with #defines for all property names.Peter Hutterer2008-09-30
|
* Use new property API (no ConfigureDP, less args to ChangeDP)Peter Hutterer2008-09-26
| | | | | Return appropriate status codes from property handlers. Make properties non-deletable.
* Use HAVE_PROPERTIES define instead of GET_ABI_MAJOR for property compilation.Peter Hutterer2008-09-04
|
* Shut up "unused variable" compiler warnings.Peter Hutterer2008-09-04
| | | | Hide properties behind ifdefs, fake use of "val".
* Simplify the property handler registration.Peter Hutterer2008-08-08
| | | | | Instead of having separate handlers for each property, just handle all of them in one handler for emuMB, and one handler for emuWheel.
* Adding a function to map button events to button numbers.Chris Salch2008-08-06
| | | | | | | Remove code duplication, let the mapping function hand us the actual button event to be passed up to the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Guard property changes against ABI_XINPUT < 3.Peter Hutterer2008-07-21
|
* Add support for device properties, currently MB emulation and timeout.Peter Hutterer2008-07-10
|
* Update COPYING with the correct copyright info.Peter Hutterer2008-07-03
| | | | | Fix up licence of emuMB.c, was using Red Hat instead of "The authors", but this code wasn't contributed by RH anyway.
* Shut up compiler warning "implicit declaration of function 'xf86Msg'"Peter Hutterer2008-06-17
|
* If Emulate3Buttons is specified in the config, don't auto-deactivate it.Peter Hutterer2008-06-11
| | | | | | Default setting is still "on" until middle button is pressed. If the options is however explicitly stated in the config file, it takes the value from the config file, no matter if a middle button is present.
* Remove wakeup handlers when device is closed.Peter Hutterer2008-06-11
| | | | Less SIGABRTs are less exciting, but sometimes boredom is what we want.
* Enable middle-mouse button emulation.Peter Hutterer2008-06-10
Ported from xf86-input-mouse, with a few cleanups.