Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

dasusemouse.cpp 539 B

123456789101112131415161718192021222324
  1. #include "mex.h"
  2. #include "DasControl.h"
  3. void mexFunction(
  4. int nlhs, mxArray *plhs[],
  5. int nrhs, const mxArray *prhs[])
  6. {
  7. double On;
  8. double *Pos;
  9. /* Check for proper number of arguments */
  10. if (nrhs != 1) {
  11. mexErrMsgTxt("One input argument required.");
  12. return;
  13. }
  14. On = mxGetScalar(prhs[0]);
  15. plhs[0] = mxCreateDoubleMatrix(2, 1, mxREAL);
  16. Pos = mxGetPr(plhs[0]);
  17. Use_Mouse( (unsigned short)On, Pos);
  18. }