Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed OHMD_BUTTON_COUNT to OHMD_CONTROL_COUNT #13

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion OpenHMD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void OpenHMD::printDeviceInfo() {
print("distortion k:", 6, OHMD_DISTORTION_K);

int bcount[1];
ohmd_device_geti(hmd, OHMD_BUTTON_COUNT, bcount);
ohmd_device_geti(hmd, OHMD_CONTROL_COUNT, bcount);
printf("digital button count: %i\n", bcount[0]);

printf("\n");
Expand Down
32 changes: 30 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
python-openhmd
===========
Changes were made based on this commit:

https://github.com/OpenHMD/OpenHMD/commit/2a3b34b61298a63cab72c9b3d4f665088a329204

This build is untested.


This failed when trying to build with libopenhmd-dev and libopenhmd0 due to the header file, /usr/include/open
hmd/openhmd.h being different then the header file installed when building from source.

Python OpenHMD bindings

Expand All @@ -9,9 +18,28 @@ Python OpenHMD bindings
* Cython

## Install

```
$ ./setup.py install
sudo apt-get install libudev-dev libusb-1.0-0-dev libfox-1.6-dev
sudo apt-get install autotools-dev autoconf automake libtool
git clone https://github.com/signal11/hidapi.git
cd hidapi
./bootstrap
./configure
make
sudo make install
cd ..
git clone https://github.com/OpenHMD/OpenHMD.git
cd OpenHMD
mkdir build
cd build
cmake .. <---- see project readme for proper cmake commadn
make
sudo make install
cd ../..
git clone https://github.com/hephaestus9/python-openhmd.git
cd python-openhmd
sudo pip3 install cython
python3 setup.py install
```

## Arch Linux Package
Expand Down
Loading