Jump to content

UniResetShiftState: Difference between revisions

From EDM2
UniResetshiftState created
 
m removed constants definitions; on own page
Line 6: Line 6:
; shiftState - [[OS2 API:DataType:USHIFTSTATE|USHIFTSTATE]] - input : The shift state consists of 3 32-bit values.  These bit definitions define the actual, effective, and LED shift states.
; shiftState - [[OS2 API:DataType:USHIFTSTATE|USHIFTSTATE]] - input : The shift state consists of 3 32-bit values.  These bit definitions define the actual, effective, and LED shift states.
; type - [[OS2 API:DataType:ULONG|ULONG]] - input : The type of reset of:
; type - [[OS2 API:DataType:ULONG|ULONG]] - input : The type of reset of:
;[[OS2 API:Constant:KEYEV#KEYEV_RELEASE|KEYEV_RELEASE]] : Release all keys pressed.
* [[OS2 API:Constant:KEYEV#KEYEV_RELEASE|KEYEV_RELEASE]]
;[[OS2 API:Constant:KEYEV#KEYEV_SET|KEYEV_SET]] : Set to secified key.
* [[OS2 API:Constant:KEYEV#KEYEV_SET|KEYEV_SET]]
;[[OS2 API:Constant:KEYEV#KEYEV_ZERO|KEYEV_ZERO]] : Release all pressed and locked keys.
* [[OS2 API:Constant:KEYEV#KEYEV_ZERO|KEYEV_ZERO]]


=== Constants ===
=== Constants ===

Revision as of 06:24, 30 May 2006

UniResetShiftState

UniResetShiftState(keyboardHndl, shiftState, type)
Reset the effective and actual shift state and LED status.

Parameters

keyboardHndl - KHAND - input
The key board handle received from UniCreateKeyboard.
shiftState - USHIFTSTATE - input
The shift state consists of 3 32-bit values. These bit definitions define the actual, effective, and LED shift states.
type - ULONG - input
The type of reset of:

Constants

None

Returns

An integer with values of:

Module

Define (C/C++)

Export name/Ordinal

Calling conversion

Cdecl32

Example Code

KHAND       keyboardHndl;
USHIFTSTATE shiftState;
ULONG       type;
integer     rc;
...
rc = UniResetShiftState(keyboardHndl, shiftState, type);
...

Related Functions

UniUpdateShiftState

Notes

UniResetShiftState is used to change the shift state not through the normal keying sequence. The LED status is maintained based on the shift state.

OS Version Introduced

OS/2 Warp