This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Computer Information: | |
Manufacturer: Unknown | |
Model: Unknown | |
Form Factor: Laptop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: GenuineIntel | |
CPU Brand: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz | |
CPU Family: 0x6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "example" | |
version = "0.1.0" | |
authors = ["Michael Palmos <[email protected]>"] | |
edition = "2018" | |
[dependencies] | |
gfx = "0.18" | |
gfx_core = "*" | |
gfx_device_gl = "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <X11/Xlib.h> | |
#include <X11/Xatom.h> | |
#include <X11/Xutil.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <stdbool.h> | |
#include "x.h" | |
#include "datatypes.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Pool : MonoBehaviour { | |
public List<PooledObject> objectsToPool; | |
private Dictionary<Type, Queue<PooledObject>> dict; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( | |
max_notifications: 0, | |
min_window_width: 1, | |
min_window_height: 1, | |
timeout: 10000, | |
poll_interval: 6, | |
debug: true, | |
debug_color: Color(r: 0.0, g: 1.0, b: 0.0, a: 1.0), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub fn screen_to_world( | |
cursor: Res<Events<CursorMoved>>, | |
windows: Res<Windows>, | |
mut input_state: ResMut<GlobalInputState>, | |
camera_query: Query<(&Camera, &Transform)>, | |
) { | |
// Calculate world space mouse ray. If there's no new mouse move event, then continue. | |
let pos = match input_state.cursor.latest(&cursor) { | |
Some(ev) => ev.position, | |
None => return, |