(Example → 1P = analog, 2P = mouse game)
If you write it like a library document, it will look like this:
typedef struct { PerMulId id; /* Multitap ID */ PerMulCon con; /* Number of connectors */ } PerMulInfo; /* Multitap information */
void *per_data; PerMulInfo *mul_info; PER_LGetPer((PerGetPer **)&per_data, &mul_info); mul_info[0].id Multi-tap ID of main unit terminal 1 mul_info[0].con Number of connectors for main unit terminal 1 mul_info[1].id Multi-tap ID for main unit terminal 2 mul_info[1].con Number of connectors for main unit terminal 2
connect multitap | : (00~E0) Symbol undefined |
Not connected or directly connected | : (F0) PER_MID_NCON_ONE |
UNKNOWN device | : (MD-PID) Symbol undefined (*)MD-PID: Mega Drive Peripheral ID |
Not connected or UNKNOWN device | : (00) PER_MCON_NCON_UNKNOWN |
direct connection | : (01) Symbol undefined |
Number of connected multi-tap connectors | : (02~0F) Symbol undefined |
Sega Tap (4 peripherals for Mega Drive)
Multitap ID = 00, number of connectors = 04
Multiterminal 6 (used to connect 6 Saturn peripherals)
Multitap ID = 10, number of connectors = 06
For example, in the case of a steering wheel controller,
"Digital PAD data" + "Analog data"
The data format is as follows.
I don't know much about the data format of "Nejicon", but I think there will be no problem if it is in the form of an extension of the digital PAD as above. The release of new peripherals itself depends on the situation, but if the data format is new, a peripheral ID will probably be added, so it is impossible to support it with the software currently under development.
Even if the software is only compatible with digital devices,
If a mouse is connected using software that does not support mice, please take measures such as ignoring it or converting it to operate digitally.
Finally, regarding detailed information about the keyboard, we believe that the necessary information is specified in the format as long as it is used for normal game operations.
For detailed peripheral data formats, see
Note | Virtua Gun itself does not support multi-tap. (Even if connected, it will not work properly) |
---|
If the problem still occurs even after making the above changes, please execute the PER_Linit function again when the "Not connected" status is returned.
(If "Not connected" is returned even after repeating this several times, please assume that it is truly not connected.)
Racing controllers, mission sticks, and multi-controllers all have analog device IDs and the data format is common, but the data size is different.
The application should use this information to determine what peripherals are currently connected.
Peripheral-specific buttons correspond to the following data formats.