Commit 84b70efa authored by François Heremans's avatar François Heremans
Browse files

Updated all examples

parent e459d8ee
......@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
......@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const Uint8 *keystates)
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const uint8_t *keystates)
{
}
......
......@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
......@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const Uint8 *keystates)
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const uint8_t *keystates)
{
}
......
......@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
......@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const Uint8 *keystates)
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const uint8_t *keystates)
{
}
......
......@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
......@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const Uint8 *keystates)
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const uint8_t *keystates)
{
}
......
......@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
......@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const Uint8 *keystates)
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const uint8_t *keystates)
{
}
......
......@@ -6,14 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#define HAVE_M_PI // avoid redefinition of M_PI when including SDL
#include "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
......@@ -43,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const Uint8 *keystates)
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const uint8_t *keystates)
{
}
......
......@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
......@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const Uint8 *keystates)
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const uint8_t *keystates)
{
}
......
......@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
......@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const Uint8 *keystates)
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const uint8_t *keystates)
{
}
......
......@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
......@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const Uint8 *keystates)
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const uint8_t *keystates)
{
}
......
......@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
......@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const Uint8 *keystates)
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const uint8_t *keystates)
{
}
......
......@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
......@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const Uint8 *keystates)
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const uint8_t *keystates)
{
}
......
......@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
......@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const Uint8 *keystates)
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const uint8_t *keystates)
{
}
......
......@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
......@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const Uint8 *keystates)
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const uint8_t *keystates)
{
}
......
......@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
......@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const Uint8 *keystates)
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const uint8_t *keystates)
{
}
......
......@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
......@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const Uint8 *keystates)
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const uint8_t *keystates)
{
}
......
......@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
......@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const Uint8 *keystates)
void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const uint8_t *keystates)
{
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment