aboutsummaryrefslogtreecommitdiff
path: root/src/emuMB.c
Commit message (Collapse)AuthorAge
* Janitor: make distcheck, .gitignore.Paulo Cesar Pereira de Andrade2009-02-02
| | | | | | | Remove non toplevel .gitignore and .cvsignore files. The "make distcheck correction" for $(sdkdir) probably has a better approach using a "*-hook:" target, or possibly making $sdkdir a configure time option that could be set with DISTCHECK_CONFIGURE_FLAGS.
* 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>
* emuMB: add EvdevMBEmuOn and call from EvdevOn to register wakeup handlers.Peter Hutterer2008-10-28
| | | | | | | 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.
* emulate MB: fix confusing log message.Peter Hutterer2008-10-24
| | | | | | | 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.
* MB emulation timeout is stored as Time, make the property 32-bit too.Peter Hutterer2008-10-23
|
* Tidy up evdev.hPeter Hutterer2008-10-14
| | | | | This includes shuffling some functions around so we don't need the prototypes in evdev.h.
* Register property handler from within the modules, not the main evdev file.Peter Hutterer2008-10-14
|
* 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.
* 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.