summaryrefslogtreecommitdiff
path: root/xinput_ivy.e
diff options
context:
space:
mode:
Diffstat (limited to 'xinput_ivy.e')
-rw-r--r--xinput_ivy.e18
1 files changed, 17 insertions, 1 deletions
diff --git a/xinput_ivy.e b/xinput_ivy.e
index 15d0a54..d65c72b 100644
--- a/xinput_ivy.e
+++ b/xinput_ivy.e
@@ -22,7 +22,7 @@ feature {}
ready: BOOLEAN
do
application_name := "wacom"
- ivy_bus := ":3110"
+ ivy_bus := ""
device_id := "default"
screen := vision.root_window
ready := decode_options
@@ -135,6 +135,18 @@ feature {}
std_error.put_string(value)
std_error.put_string("%" is not a valid ignore rate (an integer is needed).%N")
end
+ when "-crop" then
+ std_error.put_string("Detection de l'option crop : ")
+ std_error.put_string(value)
+ std_error.put_new_line
+ if tmp_pointer.is_valid_crop(value) then
+ tmp_pointer.set_crop(value)
+ else
+ error := True
+ std_error.put_character('"')
+ std_error.put_string(value)
+ std_error.put_string("%" is not a valid crop definition (-crop=xmin,ymin,xmax,ymax is expected).%N")
+ end
else
error := True
std_error.put_string("Unknown option ")
@@ -228,6 +240,10 @@ feature {}
-y_offset=n: specify the y-offset for the wacom device
for the display configuration (default is 0).
+ -crop=xmin,ymin,xmax,ymax: outside this area, move events are not reported
+ (values are integers in device coordinates). Hires values
+ are mapped to [0,1] inside this window and over when outside.
+
-prediction=t: change the prediction time for the physical position.
(default is 25ms).