Intermec 5055 Reference Guide

Page of 216
im_set_input_mode
5-67
5
im_set_input_mode
Purpose:
This function sets the 5055 input mode to Wedge, Programmer, or Desktop. These
modes affect how the 5055 interprets and stores input.
Syntax:
#include "im5055.h"
IM_STATUS im_set_input_mode
    (IM_MODE 
mode
);
IN Parameters:
mode    Specifies the mode. Choose one of these constants:
IM_PROGRAMMER    Input is returned as a string (default). Simple line editing is
permitted using backspace.
IM_WEDGE    Input is returned as a string. Simple line editing is permitted using
backspace.
IM_DESKTOP    Keyboard characters are returned as 4 bytes. The first byte is the
ASCII code. The second byte is the scan code, and the last two bytes are flags for
modifier keys (Shift and Control).
OUT Parameters:
None.
Return Value:
IM_SUCCESS    Success.
See Also:
im_get_input_mode, im_receive_input