hack for testing all 8 players w/ only one joystick
This commit is contained in:
@@ -115,7 +115,8 @@ void ScreenJoinMultiplayer::Input( const DeviceInput& DeviceI, const InputEventT
|
|||||||
|
|
||||||
// Translate input and sent to the appropriate player. Assume that all
|
// Translate input and sent to the appropriate player. Assume that all
|
||||||
// joystick devices are mapped the same as the master player.
|
// joystick devices are mapped the same as the master player.
|
||||||
if( DeviceI.device >= DEVICE_JOY1 &&
|
if( type == IET_FIRST_PRESS &&
|
||||||
|
DeviceI.device >= DEVICE_JOY1 &&
|
||||||
DeviceI.device < DEVICE_JOY1 + NUM_MultiPlayer )
|
DeviceI.device < DEVICE_JOY1 + NUM_MultiPlayer )
|
||||||
{
|
{
|
||||||
DeviceInput di = DeviceI;
|
DeviceInput di = DeviceI;
|
||||||
@@ -130,6 +131,14 @@ void ScreenJoinMultiplayer::Input( const DeviceInput& DeviceI, const InputEventT
|
|||||||
|
|
||||||
MultiPlayer p = (MultiPlayer)(DeviceI.device - DEVICE_JOY1);
|
MultiPlayer p = (MultiPlayer)(DeviceI.device - DEVICE_JOY1);
|
||||||
|
|
||||||
|
// testing hack
|
||||||
|
if( INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD,KEY_LSHIFT) ) )
|
||||||
|
p = (MultiPlayer)(p + 1);
|
||||||
|
if( INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD,KEY_LCTRL) ) )
|
||||||
|
p = (MultiPlayer)(p + 2);
|
||||||
|
if( INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD,KEY_LALT) ) )
|
||||||
|
p = (MultiPlayer)(p + 4);
|
||||||
|
|
||||||
ASSERT( p>=0 && p<NUM_MultiPlayer );
|
ASSERT( p>=0 && p<NUM_MultiPlayer );
|
||||||
|
|
||||||
MultiPlayerStatus old = g_MultiPlayerStatus[p];
|
MultiPlayerStatus old = g_MultiPlayerStatus[p];
|
||||||
|
|||||||
Reference in New Issue
Block a user