/////////////////////////////////////////
//
//             OpenLieroX
//
// code under LGPL, based on JasonBs work,
// enhanced by Dark Charlie and Albert Zeyer
//
//
/////////////////////////////////////////


// Floating options window file
// Created 24/9/08
// Karel Petranek

#include "Options.h"
#include "CClient.h"

void UpdateGameInputs()
{
	// Setup the controls
	cClient->getWorm(0)->SetupInputs( tLXOptions->sPlayerControls[0] );
	// TODO: setup also more viewports
	if(cClient->getNumWorms() >= 2)
		cClient->getWorm(1)->SetupInputs( tLXOptions->sPlayerControls[1] );
	
    cClient->getViewports()[0].setupInputs( tLXOptions->sPlayerControls[0] );
    cClient->getViewports()[1].setupInputs( tLXOptions->sPlayerControls[1] );

}

/////////////////////////////////////////
//
//             OpenLieroX
//
// code under LGPL, based on JasonBs work,
// enhanced by Dark Charlie and Albert Zeyer
//
//
/////////////////////////////////////////


// Floating options window file
// Created 24/9/08
// Karel Petranek
--- 
+++ 
@@ -12,3 +12,19 @@
 // Floating options window file
 // Created 24/9/08
 // Karel Petranek
+
+#include "Options.h"
+#include "CClient.h"
+
+void UpdateGameInputs()
+{
+	// Setup the controls
+	cClient->getWorm(0)->SetupInputs( tLXOptions->sPlayerControls[0] );
+	// TODO: setup also more viewports
+	if(cClient->getNumWorms() >= 2)
+		cClient->getWorm(1)->SetupInputs( tLXOptions->sPlayerControls[1] );
+	
+    cClient->getViewports()[0].setupInputs( tLXOptions->sPlayerControls[0] );
+    cClient->getViewports()[1].setupInputs( tLXOptions->sPlayerControls[1] );
+
+}
Hackontest: Update input keys in game, for Floating Options


git-svn-id: 0634bf30b6d7a21f2003d4a9f34c102a3ffa6fda@2375 34602234-ff1f-0410-a465-ea8f3b77ab7f
