Signed-off-by: Peter Hutterer <[email protected]>
---
src/wcmCommon.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/wcmCommon.c b/src/wcmCommon.c
index 591a20e..bf33507 100644
--- a/src/wcmCommon.c
+++ b/src/wcmCommon.c
@@ -62,12 +62,20 @@ static void sendAButton(InputInfoPtr pInfo, int button, int
mask,
* Utility functions
****************************************************************************/
+/**
+ * @return TRUE if the device is set to abolute mode, or FALSE otherwise
+ */
Bool is_absolute(InputInfoPtr pInfo)
{
WacomDevicePtr priv = (WacomDevicePtr)pInfo->private;
return !!(priv->flags & ABSOLUTE_FLAG);
}
+/**
+ * Set the device to absolute or relative mode
+ *
+ * @param absolute TRUE to set the device to absolute mode.
+ */
void set_absolute(InputInfoPtr pInfo, Bool absolute)
{
WacomDevicePtr priv = (WacomDevicePtr)pInfo->private;
--
1.7.4
------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel