src/spacenav-lib-hack.h
author František Kučera <franta-hg@frantovo.cz>
Fri, 08 Mar 2019 22:48:35 +0100
branchv_0
changeset 3 d8793f61ee43
parent 1 ac5f3768ebb1
child 8 1dab2b99f51d
permissions -rw-r--r--
a bit cleaner version (but still with an infinite loop) tested with FreeCAD – test case: - start spacenavd daemon without .Xauthority so it accepts only domain socket connection but not X11 - run freecad - 3D mouse will not work - run LD_PRELOAD=./spacenav-lib-hack/build/Debug/src/libspnav-lib-hack.so freecad - 3D mouse will work
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
ac5f3768ebb1 almost working, but there is an SIGABRT
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     1
/**
ac5f3768ebb1 almost working, but there is an SIGABRT
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     2
 * Spacenav lib hack
ac5f3768ebb1 almost working, but there is an SIGABRT
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     3
 * Copyright © 2019 František Kučera (Frantovo.cz, GlobalCode.info)
ac5f3768ebb1 almost working, but there is an SIGABRT
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     4
 *
ac5f3768ebb1 almost working, but there is an SIGABRT
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     5
 * This program is free software: you can redistribute it and/or modify
ac5f3768ebb1 almost working, but there is an SIGABRT
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
ac5f3768ebb1 almost working, but there is an SIGABRT
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     7
 * the Free Software Foundation, either version 3 of the License, or
ac5f3768ebb1 almost working, but there is an SIGABRT
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     8
 * (at your option) any later version.
ac5f3768ebb1 almost working, but there is an SIGABRT
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     9
 *
ac5f3768ebb1 almost working, but there is an SIGABRT
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    10
 * This program is distributed in the hope that it will be useful,
ac5f3768ebb1 almost working, but there is an SIGABRT
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
ac5f3768ebb1 almost working, but there is an SIGABRT
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
ac5f3768ebb1 almost working, but there is an SIGABRT
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    13
 * GNU General Public License for more details.
ac5f3768ebb1 almost working, but there is an SIGABRT
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    14
 *
ac5f3768ebb1 almost working, but there is an SIGABRT
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License
ac5f3768ebb1 almost working, but there is an SIGABRT
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    16
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
ac5f3768ebb1 almost working, but there is an SIGABRT
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    17
 */
ac5f3768ebb1 almost working, but there is an SIGABRT
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    18
#pragma once
ac5f3768ebb1 almost working, but there is an SIGABRT
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    19