However, suppose you wanted to move only one pixel to the left. Although the default value of pointer_mod2_amt is one pixel, no key is assigned to the modifier for that amount. Thus, you would need to edit the X0pointerkeys file (or create an X*pointerkeys) to include a line assigning one of the

modifier keys to pointer_amt_mod2. The following line in X0pointerkeys assigns the key to pointer_amt_mod2:

###pointerfunction key pointer_amt_mod2 left_shift

Or suppose you wanted to set up your X0pointerkeys file so that you could move 1, 10, 25, and 100 pixels. The following lines show one way to specify this:

###pointer function key pointer_amt_mod1 left_extend pointer_amt_mod2 left_shift pointer_amt_mod3 control

pointer_move 1_pixels pointer_mod1_amt 10_pixels pointer_mod2_amt 25_pixels pointer_mod3_amt 100_pixels

With these lines in effect, one press of the key on the keypad moves the pointer 1 pixel to the left.

Pressing the left and moves the pointer 10 pixels to the left. Pressing

moves the pointer 25 pixels to the left. And pressing moves the pointer 100 pixels to the left.

Or, take the case, previously mentioned, where you want to use the arrow keys for both text cursor and mouse pointer. You could insert the following lines in your X0pointerkeys file:

###pointer function

key

pointer_key_mod1

left_shift

pointer_left_key

cursor_left

pointer_right_key cursor_right

pointer_up_key cursor_up pointer_down_key cursor_down

The above lines enable you to use the arrow keys for cursor movement, while using the shifted arrow keys for pointer movement.

____________________________________________________________________________________

Note: Only the key (and not the ) modifies the press of an arrow key from cursor to pointer movement.

____________________________________________________________________________________

Now, suppose you want to use the arrow keys to operate the pointer, and you also need the arrow keys to control the cursor in an hpterm window. Furthermore, another application uses the shift-arrow key sequence to control its cursor.

Page 96

Graphics Administration Guide for HP-UX 10.20