emInitController.3p
652 Bytes
.TH emInitController 3P local "Silicon Graphics, Inc."
.SH NAME
emInitController \- Initialize the game controller connected on a serial port
.SH C SPECIFICATION
#include "em.h"
.br
.sp
int emInitController(int port)
.SH PARAMETERS
.TP 10
.I port
tty port number
.SH DESCRIPTION
Initialize the tty line that is connected to the game controller.
.I /dev/ttydx
is the character device that is used.
.I x
is the port number that is passed in and it must be between 1 and 4.
.SH NOTES
The baud rate of the /dev/ttydx port is fixed at 9600 baud.
.SH RETURN VALUE
Returns 0 on success and -1 on failure.
.SH SEE ALSO
.TP 10
emulate(1P), emGetController(3P)