Skip to content

Instantly share code, notes, and snippets.

View Ohjurot's full-sized avatar
🎮
DirectX 12

Ludwig Füchsl Ohjurot

🎮
DirectX 12
View GitHub Profile
Information for device Controller (VID=0x045E PID=0x028E):
Connection Information:
------------------------------
Device current bus speed: FullSpeed
Device supports USB 1.1 specification
Device supports USB 2.0 specification
Device address: 0x000F
Current configuration value: 0x01
Number of open pipes: 7
@dogtopus
dogtopus / ds5.desc.xml
Last active March 14, 2024 01:17
DualSense descriptor
<?xml version="1.0"?>
<!--
DualSense (DS5) USB HID Report Descriptor
Documentation WIP
TODO: Extract info from hid-playstation and cross-verify with us.
-->
@mmozeiko
mmozeiko / xbox_test.c
Last active February 27, 2024 17:41
Getting xbox controller input without xinput
// cl.exe xbox_test.c /link setupapi.lib user32.lib
#include <windows.h>
#include <setupapi.h>
#include <dbt.h>
#include <stdio.h>
/// interface
#define XBOX_MAX_CONTROLLERS 16
@aantron
aantron / fragment of java.cpp
Created January 9, 2017 18:09
Java classes inlined into object file, plus loader
// This function calls the JNI routine DefineClass for each class in the
// in-memory class table (see java-classes.h). The class loader parameter passed
// to define class is the result of calling ClassLoader.getSystemClassLoader().
jthrowable java_load_classes()
{
JNIEnv *environment;
jclass class_loader;
jmethodID get_system_loader;
jobject system_loader;
jthrowable exception;