diff options
author | epoch <epoch@hacking.allowed.org> | 2018-02-19 05:48:27 -0600 |
---|---|---|
committer | epoch <epoch@hacking.allowed.org> | 2018-02-19 05:48:27 -0600 |
commit | 17d055140312343e74e28af32156e6cf0eb0aae6 (patch) | |
tree | 731f3444000abb0a9f85e1543cd8e1eb571aa560 | |
parent | 589f96f40721162300ac4907096629923f0d5901 (diff) | |
download | hackvr-17d055140312343e74e28af32156e6cf0eb0aae6.tar.gz hackvr-17d055140312343e74e28af32156e6cf0eb0aae6.zip |
added small hackvr script to wrap _x11 and _fb. updated README a bit to mention fb version. removed hackvr from gitignore
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | README | 13 | ||||
-rwxr-xr-x | src/hackvr | 6 |
3 files changed, 17 insertions, 4 deletions
@@ -1,7 +1,5 @@ *.o hackvr_term/hackvr_term -hackvr -src/hackvr src/hackvr_headless src/hackvr_x11 src/hackvr_opengl @@ -8,6 +8,10 @@ hackvr... um. outputs commands to stdout based on keys pressed inside hackvr, and inputs the same type of commands. so do some plumbing and get a multiplayer game going? +I'm working on making hackvr work with different output and input types. Right now the only one +that works with everything is hackvr_x11. There's also a hackvr_fb that uses the linux framebuffer, +but it doesn't have mouse support and keyboard support is wonky due to me not thinging it through. + quick start: You'll need to have the library and headers of libx11 installed for hackvr to build successfully. @@ -22,8 +26,11 @@ If you want to build the GLut crap you'll need After you have that installed you should be able to do these to get hackvr built: - cd src - make + make #BSD make doesn't do target specific variables. use GNUMake. + export PREFIX=$(HOME)/local #the Makefiles are short, worth a read. + make install + +The make install will create hackvr_headless, hackvr_x11, hackvr_fb. A few helper scripts are written in perl and python. So you might want to install perl and python if you want to play with them. @@ -33,6 +40,8 @@ what hackvr can do... I dunno. +try cd tictactoe ; ./run +or... fiddle with the scripts laying around? _ _ \O_o/ diff --git a/src/hackvr b/src/hackvr new file mode 100755 index 0000000..919b697 --- /dev/null +++ b/src/hackvr @@ -0,0 +1,6 @@ +#!/bin/sh +if [ $DISPLAY ]; then + exec hackvr_x11 $* +else + exec hackvr_fb $* +fi |