Skip to content

Instantly share code, notes, and snippets.

View MrMinimal's full-sized avatar
💭
Easily distracted by planes

Tom Langwaldt MrMinimal

💭
Easily distracted by planes
View GitHub Profile
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
CPU Family: 0x6
use winapi::um::winuser::RAWHID;
use winapi::shared::hidpi::{PHIDP_PREPARSED_DATA, HidP_Input, HidP_GetUsageValue, HIDP_STATUS_SUCCESS, HidP_GetUsages};
use winapi::shared::hidusage::USAGE;
use winapi::shared::ntdef::{PCHAR, ULONG, LONG};
use event::RawEvent;
use devices::{JoystickState, HatSwitch, JoystickInfo};
use std::mem::transmute;
use std::mem;
pub unsafe fn garbage_vec<T>(size: usize) -> Vec<T>{
extern crate winit;
use winit::{ControlFlow, DeviceEvent, WindowEvent, ElementState, KeyboardInput};
fn main() {
let mut events_loop = winit::EventsLoop::new();
let window = winit::WindowBuilder::new().build(&events_loop).unwrap();
window.set_title("winit - Cursor grabbing test");
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
CPU Family: 0x6
@MrMinimal
MrMinimal / terminalAfterSteamVRLaunch
Created April 10, 2017 03:06
Linux SteamVR output on 306 error
/bin/bash: /home/steel/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libtinfo.so.5: no version information available (required by /bin/bash)
+++ dirname /home/steel/.local/share/Steam/steamapps/common/SteamVR/tools/bin/vrmonitor.sh
++ cd /home/steel/.local/share/Steam/steamapps/common/SteamVR/tools/bin/..
++ pwd
+ TOOLSDIR=/home/steel/.local/share/Steam/steamapps/common/SteamVR/tools
++ cd /home/steel/.local/share/Steam/steamapps/common/SteamVR/tools/../runtime
/home/steel/.local/share/Steam/steamapps/common/SteamVR/tools/bin/vrmonitor.sh: line 3: cd: /home/steel/.local/share/Steam/steamapps/common/SteamVR/tools/../runtime: No such file or directory
++ pwd
+ RUNTIMEDIR=/home/steel/.local/share/Steam/steamapps/common/SteamVR
+ case $(uname) in