Diferencia entre revisiones de «Manual de programación de OS/2/Llamadas KBDxxx para acceso al teclado»
Contenido eliminado Contenido añadido
Sin resumen de edición |
m Bot: Correcciones ortográficas; cambios triviales |
||
Línea 2:
</A>
<P>KbdCharIn devuelve una lectura del teclado, indicando que teclas aisladas están pulsadas.
<P>#define INCL_BASE<
<P>PKBDKEYINFO CharData;
<
<
<
<P>rc = KbdCharIn(CharData, IOWait, KbdHandle);
<P><TABLE><TH><H3>Parámetros</H3></TH>
Línea 27:
<TD>Estado del evento de pulsación. Se lee por bits:
<
<TABLE>
Línea 36:
<TR>
<TD>7-6</TD>
<TD>Indican si es el primer byte o el último de un
</TR>
Línea 50:
<TR>
<TD>1</TD>
<TD>Si es 0, el ScanCode es un
</TR>
<TR>
Línea 66:
<TR>
<TD>fsState (USHORT)</TD>
<TD>Describe las teclas que hay pulsadas:<
<TABLE>
Línea 155:
</TABLE>
</TD></TR>
<TR><TD>IOWait</TD><TD>Si es 0, el thread es dormido hasta que halla un
<TR><TD>KbdHandle</TD><TD>Handle de teclado. Debe ser 0.</TD></TR>
Línea 166:
<TR><TD>447</TD><TD>El teclado está ocupado</TD></TR>
<TR><TD>464</TD><TD>KBD inactivo (proceso en
<TR><TD>504</TD><TD>KBD Extended SG</TD></TR>
</TABLE>
Línea 174:
</A>
<P>KbdFlushBuffer vacía el buffer de teclado.
<P>#define INCL_BASE<
<P>HKBD
<
<P>rc = KbdFlushBuffer(KbdHandle);
<P><TABLE><TH><H3>Parámetros</H3></TH>
Línea 188:
<TR><TD>447</TD><TD>El teclado está ocupado</TD></TR>
<TR><TD>464</TD><TD>KBD inactivo (proceso en
<TR><TD>504</TD><TD>KBD Extended SG</TD></TR>
</TABLE>
Línea 195:
</A>
<P>KbdGetStatus obtiene el estado actual del teclado.
<P>#define INCL_BASE<
<P>PKBDINFO
<
<
<P>rc = KbdGetStatus(StatData, KbdHandle);
<P><TABLE><TH><H3>Parámetros</H3></TH>
Línea 213:
<TD>fsMask (USHORT)</TD>
<TD>Estado del teclado:
<
<TABLE>
Línea 271:
<TR>
<TD>chTurnAround (USHORT)</TD>
<TD>Caracter de retorno. En ASCII y ASCII extendido, el
</TR>
<TR>
Línea 280:
<TR>
<TD>fsState (USHORT)</TD>
<TD>Describe las teclas que hay pulsadas:<
<TABLE>
Línea 374:
<TR><TD>447</TD><TD>El teclado está ocupado</TD></TR>
<TR><TD>464</TD><TD>KBD inactivo (proceso en
<TR><TD>504</TD><TD>KBD Extended SG</TD></TR>
</TABLE>
Línea 380:
<P><A NAME="KBDPEEK"><CENTER><H1><HR>KbdPeek<HR></H1></CENTER>
</A>
<P>KbdPeek devuelve cualquier dato disponible en el buffer de teclado de la misma forma que
<P>#define INCL_BASE<
<P>PKBDKEYINFO
<
<
<P>rc = KbdPeek(CharData, KbdHandle);
<P><TABLE><TH><H3>Parámetros</H3></TH>
Línea 406:
<TD>Estado del evento de pulsación. Se lee por bits:
<
<TABLE>
Línea 415:
<TR>
<TD>7-6</TD>
<TD>Indican si es el primer byte o el último de un
</TR>
Línea 429:
<TR>
<TD>1</TD>
<TD>Si es 0, el ScanCode es un
</TR>
<TR>
Línea 445:
<TR>
<TD>fsState (USHORT)</TD>
<TD>Describe las teclas que hay pulsadas:<
<TABLE>
Línea 543:
<TR><TD>447</TD><TD>El teclado está ocupado</TD></TR>
<TR><TD>464</TD><TD>KBD inactivo (proceso en
<TR><TD>504</TD><TD>KBD Extended SG</TD></TR>
</TABLE>
Línea 549:
<P><A NAME="KBDSETSTATUS"><CENTER><H1><HR>KbdSetStatus<HR></H1></CENTER>
</A>
<P>KbdSetStatus establece las
<P>#define INCL_BASE<
<P>PKBDINFO
<
<
<P>rc = KbdSetStatus(StatData, KbdHandle);
<P><TABLE><TH><H3>Parámetros</H3></TH>
Línea 568:
<TD>fsMask (USHORT)</TD>
<TD>El nuevo estado al que se pasa. Si los bits 0 y 1 están a 0, el estado del Echo no se cambia; si alguno se activa, se pasa a ese estado Echo. Si los bits 2 y 3 están a 0, el modo binario y el ASCII no se cambian; si alguno se activa, se pasa a ese estado. Si los bits 0 y 1 están activos, o si los bits 2 y 3 están a 1, se devuelve un error. Si el modo binario está activo, el Echo se ignora.
<
<TABLE>
<TR>
Línea 625:
<TR>
<TD>chTurnAround (USHORT)</TD>
<TD>Caracter de retorno. En ASCII y ASCII extendido, el
</TR>
<TR>
Línea 634:
<TR>
<TD>fsState (USHORT)</TD>
<TD>Describe las teclas que hay pulsadas:<
<TABLE>
Línea 730:
<TR><TD>445</TD><TD>Se requiere el foco del teclado</TD></TR>
<TR><TD>447</TD><TD>El teclado está ocupado</TD></TR>
<TR><TD>464</TD><TD>KBD inactivo (proceso en
<TR><TD>504</TD><TD>KBD Extended SG</TD></TR>
Línea 738:
</A>
<P>KbdStringIn lee una cadena de caracteres desde el teclado. Estos pueden ser visualizados a la vez que se teclean si el modo Echo está activo.
<P>#define INCL_BASE<
<P>PCH
<
<
<
<
<P>rc = KbdStringIn(CharBuffer, StringLength, IOWait, KbdHandle);
<P><TABLE><TH><H3>Parámetros</H3></TH>
Línea 753:
<TABLE BORDER=1>
<TR>
<TD>cb<
<TD>Longitud del buffer en bytes. La longitud máxima es 255.</TD>
</TR>
<TR>
<TD>cchIn<
<TD>Número de bytes que OS/2 ha depositado en el buffer.</TD>
Línea 763:
</TABLE>
</TD></TR>
<TR><TD>IOWait</TD><TD>Si es 0, espera. En modo binario se espera hasta que se llena el buffer. En modo ASCII se espera hasta que se pulse el código de retorno (por defecto, el retorno de carro).<
<TR><TD>KbdHandle</TD><TD>Handle de teclado. Debe ser 0.</TD></TR>
</TABLE>
Línea 772:
<TR><TD>439</TD><TD>Handle no válido</TD></TR>
<TR><TD>445</TD><TD>Se requiere el foco del teclado</TD></TR>
<TR><TD>464</TD><TD>KBD inactivo (proceso en
<TR><TD>504</TD><TD>KBD Extended SG</TD></TR>
|