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

Updated all examples

parent e459d8ee
...@@ -6,12 +6,14 @@ ...@@ -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). * 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 "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h" #include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard /*! \brief handle inputs comming from the keyboard
* *
* \param[in,out] mbs_data Robotran main structure * \param[in,out] mbs_data Robotran main structure
...@@ -41,7 +43,7 @@ ...@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1); * 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 @@ ...@@ -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). * 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 "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h" #include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard /*! \brief handle inputs comming from the keyboard
* *
* \param[in,out] mbs_data Robotran main structure * \param[in,out] mbs_data Robotran main structure
...@@ -41,7 +43,7 @@ ...@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1); * 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 @@ ...@@ -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). * 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 "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h" #include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard /*! \brief handle inputs comming from the keyboard
* *
* \param[in,out] mbs_data Robotran main structure * \param[in,out] mbs_data Robotran main structure
...@@ -41,7 +43,7 @@ ...@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1); * 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 @@ ...@@ -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). * 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 "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h" #include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard /*! \brief handle inputs comming from the keyboard
* *
* \param[in,out] mbs_data Robotran main structure * \param[in,out] mbs_data Robotran main structure
...@@ -41,7 +43,7 @@ ...@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1); * 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 @@ ...@@ -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). * 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 "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h" #include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard /*! \brief handle inputs comming from the keyboard
* *
* \param[in,out] mbs_data Robotran main structure * \param[in,out] mbs_data Robotran main structure
...@@ -41,7 +43,7 @@ ...@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1); * 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 @@ ...@@ -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). * 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 "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h" #include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard /*! \brief handle inputs comming from the keyboard
* *
* \param[in,out] mbs_data Robotran main structure * \param[in,out] mbs_data Robotran main structure
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1); * 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 @@ ...@@ -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). * 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 "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h" #include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard /*! \brief handle inputs comming from the keyboard
* *
* \param[in,out] mbs_data Robotran main structure * \param[in,out] mbs_data Robotran main structure
...@@ -41,7 +43,7 @@ ...@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1); * 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 @@ ...@@ -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). * 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 "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h" #include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard /*! \brief handle inputs comming from the keyboard
* *
* \param[in,out] mbs_data Robotran main structure * \param[in,out] mbs_data Robotran main structure
...@@ -41,7 +43,7 @@ ...@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1); * 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 @@ ...@@ -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). * 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 "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h" #include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard /*! \brief handle inputs comming from the keyboard
* *
* \param[in,out] mbs_data Robotran main structure * \param[in,out] mbs_data Robotran main structure
...@@ -41,7 +43,7 @@ ...@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1); * 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 @@ ...@@ -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). * 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 "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h" #include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard /*! \brief handle inputs comming from the keyboard
* *
* \param[in,out] mbs_data Robotran main structure * \param[in,out] mbs_data Robotran main structure
...@@ -41,7 +43,7 @@ ...@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1); * 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 @@ ...@@ -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). * 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 "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h" #include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard /*! \brief handle inputs comming from the keyboard
* *
* \param[in,out] mbs_data Robotran main structure * \param[in,out] mbs_data Robotran main structure
...@@ -41,7 +43,7 @@ ...@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1); * 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 @@ ...@@ -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). * 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 "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h" #include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard /*! \brief handle inputs comming from the keyboard
* *
* \param[in,out] mbs_data Robotran main structure * \param[in,out] mbs_data Robotran main structure
...@@ -41,7 +43,7 @@ ...@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1); * 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 @@ ...@@ -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). * 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 "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h" #include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard /*! \brief handle inputs comming from the keyboard
* *
* \param[in,out] mbs_data Robotran main structure * \param[in,out] mbs_data Robotran main structure
...@@ -41,7 +43,7 @@ ...@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1); * 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 @@ ...@@ -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). * 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 "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h" #include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard /*! \brief handle inputs comming from the keyboard
* *
* \param[in,out] mbs_data Robotran main structure * \param[in,out] mbs_data Robotran main structure
...@@ -41,7 +43,7 @@ ...@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1); * 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 @@ ...@@ -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). * 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 "realtime.h"
#include "events_sdl.h"
#include "user_realtime.h" #include "user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard /*! \brief handle inputs comming from the keyboard
* *
* \param[in,out] mbs_data Robotran main structure * \param[in,out] mbs_data Robotran main structure
...@@ -41,7 +43,7 @@ ...@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1); * 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 @@ ...@@ -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).