The text of a manual · part 3 of 23
VRC 4000 Software Driver Manual: Chapter 1 TWDriver Touchscreen Driver for Windows, pages 19 to 26
Pages 19 to 26 of 206, from VRC 4000 Software Driver Manual
The original document is the PDF (1.2 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Symbol VRC-4000
Page 19
Chapter 1: TWDriver Touchscreen Driver for Windows
Hardware Installation For some types of touchscreen, TWdriver has specific requirements for the controller switch settings, and where specified these must be set accordingly. If the touchscreen is connected to a serial port other than COM1, or a bus controller touchscreen is set to a port address or IRQ other than the defaults given in the ’Switch Settings and Hardware Notes’ section, the TWdriver hardware configuration settings must match the settings on the hardware itself. Refer to this section for touchscreen-specific details.
Calibration Calibration enables the software to accurately align touches with the mouse cursor. This procedure usually only needs to be performed once, as part of the initial software installation, and only needs to be repeated if the alignment of the touchscreen with the visual image should change for any reason, or if the calibration data file is deleted for any reason. The procedure involves touching two displayed points, which the software then stores in a file known as the calibration file. To perform calibration, run the TWsetup program by double clicking its icon and select the calibration option. Touch the first point, then the second point, as requested. Calibration is now complete, and a file called TWcalib will have been created in the Windows directory. If you do not have a mouse, you can start the control program using the keyboard. Use Control-Tab to switch between program group windows and icons, then use the cursor keys to highlight the TWsetup icon, then Enter to start it. Once in TWsetup, press Alt-C to run the Calibrate option. With the touchscreen working and correctly calibrated, touching the screen should move the mouse cursor immediately to the point of the touch, and the cursor should follow your finger as you slide it around the screen.
Configuration A number of configuration options affect the operational characteristics of the touchscreen, and enable you to tailor it to your precise needs. All the configuration options can be established or amended using the supplied control program, TWsetup. 1-9
Page 20
VRC 4000 Software Driver Manual
Most of the options are to be found in the 'User Controls' section of the program:
1-10
Page 21
Chapter 1: TWDriver Touchscreen Driver for Windows
Whenever you make any changes to the configuration, you can press the 'Activate new settings' button to bring your changes into immediate effect, and press the 'Test' button to test how the button responds to touches. Pressing the 'OK' button activates your changes, saves them, and exits the User Controls screen. Pressing the 'Cancel' button cancels any changes you have made, and exits the User Controls screen.
Button Modes - Pre-Defined The method used to simulate button presses and releases depends on the Button Mode configured. The default after initial installation is Button Mode three (Time/Tap mode). There are six pre-defined modes, which are quick and easy to configure, and four 'User Defined' modes which offer great flexibility, but require slightly more setting up. The pre-defined modes operate as follows:
Button Mode 1 - Touchdown mode The mouse cursor is moved to the point of the touch, then the button is immediately pressed. You can then slide around with the button held down. The button is released when you remove your finger from the screen.
Button Mode 2 - Time mode The mouse cursor is moved to the point of the touch, but the button is not pressed. You can then slide around with the button not pressed. Any time you hold your finger stationary for about half a second, the button is pressed, and a beep sounds. Once pressed, you can slide around with the button pressed, and the button is only released when you remove your finger from the screen.
Button Mode 3 - Time/Tap mode Mode 3 is similar to mode 2, but double clicks are possible. After holding stationary to generate a button press, you quickly lift your finger off the screen and then immediately touch it again. A second button press is generated immediately at the same location as the first one, and another beep sounds.
1-11
Page 22
VRC 4000 Software Driver Manual
Button Mode 4 - Tap mode The mouse cursor is moved to the point of the touch, but the button is not pressed. Button presses are generated by quickly lifting your finger off the screen and then touching it again within a short time. Double clicks are achieved by doing this twice.
Button Mode 5 - Time/Time mode Mode 5 is similar to mode 3, except the second press is achieved by holding your finger stationary for a further half second after the first beep.
Button Mode 6 - Liftoff mode The mouse cursor is moved to the point of the touch, but the button is not pressed. When you lift your finger off the screen, the button is pressed and then immediately released again. Double clicks can be achieved by quickly touching the screen and lifting off again.
Button Modes - User-Defined TWsetup allows you to define, save and recall up to four User Defined Button Modes, each with their own characteristics and behavior. These Button Modes allow you to specify the touch triggers which cause simulated mouse button events in a very flexible and powerful way.
1-12
Page 23
Chapter 1: TWDriver Touchscreen Driver for Windows
Initially, the four User Defined Button Modes are undefined. To define one, you select one, and press the 'Edit Mode' button. This displays the 'Set User Defined Mode' screen.
You must now define the touch triggers which cause each of six possible button events. The six button events are: 1. Down1
The first mouse button press
2. Up1
The first mouse button release
3. Down2
The second mouse button press (for double clicks)
1-13
Page 24
VRC 4000 Software Driver Manual
4. Up2
The second mouse button release
5. Down3
Subsequent mouse button presses
6. Up3
Subsequent mouse button releases
Down1 defines the touch triggers required to simulate a first button press, and Up1 defines the touch event required to simulate releasing the button. Down2 and Up2 define the touch trigger, if any, which will simulate another button press, if that trigger occurs within the time specified by the ClickTime option, in other words the actions required to generate a double click. Down3 and Up3 define the touch trigger, if any, which will simulate subsequent button presses. The description of ClickTime, later in this section, further describes the significance of first, second and subsequent clicks. The touch triggers which can be assigned to each of the six mouse events are: 1. None ie The mouse event will never occur
2. Immediate ie The mouse event will occur immediately
3. Touchdown ie The mouse event will occur on touchdown
4. Liftoff ie The mouse event will occur on liftoff
5. Time ie The mouse event will occur on stationary touch
6. Tap ie The mouse event will occur on tapping the screen
7. Z press ie The mouse event will occur on increasing pressure
8. Z release ie The mouse event will occur on decreasing pressure
The None option is used to prevent double clicks or subsequent clicks. The Immediate option is used to generate the mouse event immediately it becomes possible. The Touchdown option is triggered whenever a finger makes initial contact with the screen.
1-14
Page 25
Chapter 1: TWDriver Touchscreen Driver for Windows
The Liftoff option is triggered whenever a finger breaks contact with the screen. A finger lift always causes the mouse button to be released if it is pressed. The Time option is triggered by holding a touch stationary for an amount of time defined by the ClickTime option, which is described later in this section. A Tap is defined as a finger lift followed by a re-touch within the amount of time also defined by ClickTime. Note that a click generated by a tap will occur at the point of the liftoff, not at the point of the re-touch. The Z options are only supported on touchscreens with a Z (pressure) axis. To assign a touch trigger to a mouse event, select the button event in the left hand column, then the touch trigger you want to assign to it from the right hand column. The centre column shows the trigger currently assigned to each button event. As a bare minimum, you need to assign triggers to the Down1 and Up1 events. Press the 'Activate new Button Mode' button to immediately activate the new mode, and press the 'Test' button to test how the button responds to touches. Press the 'OK' button to activate your changes, save them, and exit back to the User Controls screen. Press the 'Cancel' button to cancel any changes you have made, and exit to the User Controls screen. The use of User Defined Button Modes is best explained by examples. In the notation that follows, a Button Mode is defined by specifying the six button events Down1, Up1, Down2, Up2, Down3, Up3. The pre-defined Button Modes 1 to 6 are defined as follows: 1. Mode 1: Touchdown, liftoff, touchdown, liftoff, touchdown, liftoff. 2. Mode 2: Time, liftoff, none, none, none, none. 3. Mode 3: Time, liftoff, tap, liftoff, none, none. 4. Mode 4: Tap, liftoff, tap, liftoff, tap, liftoff. 5. Mode 5: Time, time, immediate, liftoff, none, none. 6. Mode 6: Liftoff, immediate, liftoff, immediate, liftoff, immediate The following examples give an idea of the many other modes which can be created:
1-15
Page 26
VRC 4000 Software Driver Manual
• Touchdown, immediate, none, none, none, none.
This will generate an instantaneous single click (down and up) when the screen is touched. It will not be possible to drag the mouse cursor with the button pressed. • Touchdown, immediate, immediate, immediate, none, none.
This will generate two instantaneous clicks (down, up, down, up) when the screen is touched. It will not be possible to drag the mouse cursor with the button pressed. • Time, immediate, immediate, liftoff, none, none.
This will generate a double click when a touch is held stationary for ClickTime, and the button will remain down until the finger is lifted off the screen, so it will be possible to drag the cursor with the button down. • Liftoff, immediate, tap, liftoff, none, none.
This will generate a single click (down and up) when the finger is lifted off the screen, and a second click if the screen is re-touched within ClickTime. Then the button will remain down until the finger is again lifted off the screen. • Time, time, immediate, time, immediate, time.
This will generate a continuous sequence of button presses as long as the finger is held stationary. • Zpress, Zrelease, Zpress, liftoff, none, none.
This will allow you to move the cursor around, then press hard to generate a button press, and release it by reducing the pressure. Double clicks will be possible by pressing hard again. • Touchdown, immediate, immediate, immediate, immediate.
Not recommended! Continuous, never ending, button presses will be generated on first touching the screen. In fact TWdriver will go into a tight loop continuously pressing and releasing the button, and no other processing will be able to occur.
1-16