Skip to content

Instantly share code, notes, and snippets.

View lfzawacki's full-sized avatar
💭
Millennials just wanna have 🥑s

Lucas lfzawacki

💭
Millennials just wanna have 🥑s
View GitHub Profile
#!/usr/bin/lua
do
POINT = {}
POINT.new = function(pnt, x, y)
local pt = {}
function pt.display(pnt, comment)
print(comment)
print(x)
@lfzawacki
lfzawacki / pandoc_example
Created January 5, 2011 04:34
Example of usage of pandoc to generate a book like document
% A Lua Book
% Many Great guys
yadaydayda
# Installing Lua
Pretty easy
# Rocketing to the Moon
From 14134e4fad0d549b8cdda34d411174c084076dc5 Mon Sep 17 00:00:00 2001
From: Lucas Fialho Zawacki <lfzawacki@gmail.com>
Date: Wed, 8 Jun 2011 23:49:34 -0300
Subject: dinput: EnumDevicesBySemantics enumerating system keyboard and mouse
---
dlls/dinput/dinput_main.c | 98 +++++++++++++++++++++++++++++++++++++++++---
1 files changed, 91 insertions(+), 7 deletions(-)
diff --git a/dlls/dinput/dinput_main.c b/dlls/dinput/dinput_main.c
From 92021ad4b2c3afd056ff8c4ecca9c18dca853189 Mon Sep 17 00:00:00 2001
From: Lucas Fialho Zawacki <lfzawacki@gmail.com>
Date: Thu, 21 Jul 2011 16:15:34 -0300
Subject: [PATCH] dinput: Using the same function for keyboard/mouse BuildActionMap
---
dlls/dinput/device.c | 29 +++++++++++++++++++++++++++++
dlls/dinput/device_private.h | 1 +
dlls/dinput/keyboard.c | 26 +-------------------------
dlls/dinput/mouse.c | 26 ++------------------------
From 7d5e47af3bd3fe2d1cf42e6f01d1ce75ed7d3b7f Mon Sep 17 00:00:00 2001
From: Lucas Fialho Zawacki <lfzawacki@gmail.com>
Date: Wed, 3 Aug 2011 22:23:20 -0300
Subject: [PATCH 1/4] dinput: Added a username field to devices and a list of device ownerships to the dinput
---
dlls/dinput/device_private.h | 4 ++++
dlls/dinput/dinput_main.c | 16 ++++++++++++++++
dlls/dinput/dinput_private.h | 7 +++++++
dlls/dinput/joystick_linux.c | 2 ++
@lfzawacki
lfzawacki / 1.diff
Created August 15, 2011 13:56
Wine dinput8 Refactoring
From 38582e4da1cce9d750f0d7b30e8b320bafd7e07e Mon Sep 17 00:00:00 2001
From: Lucas Fialho Zawacki <lfzawacki@gmail.com>
Date: Thu, 21 Jul 2011 16:15:34 -0300
Subject: dinput: Common implementation of BuildActionMap for keyboard and mouse
---
dlls/dinput/device.c | 45 ++++++++++++++++++++++++++++++++++++++++++
dlls/dinput/device_private.h | 2 +
dlls/dinput/keyboard.c | 28 +-------------------------
dlls/dinput/mouse.c | 28 +------------------------
@lfzawacki
lfzawacki / 1.diff
Created August 18, 2011 19:31
Configure Devices patches
From add0b3129623f3deb3cefd9d46d8950658fcb22c Mon Sep 17 00:00:00 2001
From: Lucas Fialho Zawacki <lfzawacki@gmail.com>
Date: Thu, 28 Jul 2011 16:05:44 -0300
Subject: dinput: Added ConfigureDevices A to W crosscall
I had to switch the position of the two implementations so that the A version could effectively call the W one.
---
dlls/dinput/dinput_main.c | 64 +++++++++++++++++++++++++++++++++++----------
1 files changed, 50 insertions(+), 14 deletions(-)
@lfzawacki
lfzawacki / 1.diff
Created August 20, 2011 18:07
Device username patches
From 6933394d92b073d3701860073c7e448cccdd923f Mon Sep 17 00:00:00 2001
From: Lucas Fialho Zawacki <lfzawacki@gmail.com>
Date: Wed, 10 Aug 2011 00:15:00 -0300
Subject: dinput: SetActionMap saving simple configurations to an .ini file
Just the action mapping GUID, number of actions and the time the mapping was applied.
The helper function heap_printfW was copied from winemenubuilder.c
---
dlls/dinput/device.c | 99 ++++++++++++++++++++++++++++++++++++++++++
@lfzawacki
lfzawacki / 1.diff
Created August 20, 2011 18:59
EnumDevicesBySemantics
From ff9900e11c47341431bd8a9a574520e514686086 Mon Sep 17 00:00:00 2001
From: Lucas Fialho Zawacki <lfzawacki@gmail.com>
Date: Thu, 11 Aug 2011 21:41:50 -0300
Subject: dinput: Refactor of EnumDevicesBySemantics and proper remaining devices count.
In addition to that, the devices are now realeased after the callback is over.
---
dlls/dinput/dinput_main.c | 129 ++++++++++++++++++++++++++------------------
dlls/dinput/keyboard.c | 6 ++
dlls/dinput/mouse.c | 6 ++
@lfzawacki
lfzawacki / gist:1252578
Created September 30, 2011 03:36
Sketch Send ASCII
/*
ASCII byte, sends one ascii byte
*/
void setup()
{
Serial.begin(9600);
pinMode(13, INPUT);
}