Skip to content
Snippets Groups Projects
Commit 605b1822 authored by Louis James's avatar Louis James
Browse files

cam settings started (for automation) and resizable projector window

parent fe19761a
Branches
No related merge requests found
# Focus settings
v4l2-ctl -d /dev/video2 -c focus_auto=0
v4l2-ctl -d /dev/video2 -c focus_absolute=0
#include "Projector.h"
#include "ofApp.h"
#include <bits/stdc++.h>
//--------------------------------------------------------------
void Projector::setup() {
......@@ -74,4 +75,9 @@ void Projector::mouseReleased(int x, int y, int button){
}
void Projector::mousePressed(int x, int y, int button){
string str = "echo 'HELLO WORLD'";
// Convert string to const char * as system requires
// parameter of type const char *
const char *command = str.c_str();
system(command);
}
......@@ -16,7 +16,7 @@ int main() {
settings.setSize(1920, 1080);
settings.setPosition(glm::vec2(0,0));
settings.resizable = false;
settings.resizable = true;
shared_ptr<ofAppBaseWindow> projectorWindow = ofCreateWindow(settings);
// main app and projector app
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment