From 17d055140312343e74e28af32156e6cf0eb0aae6 Mon Sep 17 00:00:00 2001 From: epoch Date: Mon, 19 Feb 2018 05:48:27 -0600 Subject: added small hackvr script to wrap _x11 and _fb. updated README a bit to mention fb version. removed hackvr from gitignore --- .gitignore | 2 -- README | 13 +++++++++++-- src/hackvr | 6 ++++++ 3 files changed, 17 insertions(+), 4 deletions(-) create mode 100755 src/hackvr diff --git a/.gitignore b/.gitignore index cb65ddb..8a4fdd3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,5 @@ *.o hackvr_term/hackvr_term -hackvr -src/hackvr src/hackvr_headless src/hackvr_x11 src/hackvr_opengl diff --git a/README b/README index cadf074..f65d644 100644 --- a/README +++ b/README @@ -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 -- cgit v1.2.3