Sam Hocevar
9a0b6e4a9a
Build: fix several compilation warnings.
hace 6 años
Sam Hocevar
635b597e34
input: move code from input device to mouse device.
hace 6 años
Sam Hocevar
c9f75a6c3f
input: start splitting keyboard, mouse etc. objects
hace 6 años
Sam Hocevar
b0a8596001
RIP lol::Controller and lol::InputProfile ⚰️ LOL
hace 6 años
Sam Hocevar
ae4ff1d27c
input: add a buttons.inc file with a list of default mouse/joystick button names.
hace 6 años
Sam Hocevar
fe66f12e53
input: start implementing controller features directly in the input device.
hace 6 años
Sam Hocevar
a713297cfb
input: minor cleanup.
hace 6 años
Sam Hocevar
1388625308
input: remove dead code and more cleanup.
hace 6 años
Sam Hocevar
1ab9866c31
input: drivers no longer need to create the default devices.
hace 6 años
Sam Hocevar
6ad9c0d8bf
Various compilation warning and error fixes.
hace 6 años
Sam Hocevar
e2a13df73d
input: merge InputDeviceInternal into InputDevice and remove a few lines of code.
hace 6 años
Sam Hocevar
016330c12b
ui: move a lot of files around.
Most input and GUI files are now in a common ui/ directory. The platform/
directory is no longer, as everythyng was moved to application/ or ui/.
hace 6 años
Sam Hocevar
a57cecaf98
input: remove a lot of unnecessarily convoluted code.
In particular, get rid of the enum magic; we can use map<string,int> if we
really need some named enums. Which we usually don’t.
hace 6 años
Sam Hocevar
2f736356d6
input: expose the whole vector of key states to the client application.
hace 6 años
Sam Hocevar
980ff37a58
Get rid of numerous uses of lol::String.
hace 8 años
Sam Hocevar
968f7c92bb
Get rid of String::format in favour of a std::string version.
hace 8 años
Sam Hocevar
3544e76a4d
input: fix uninitialised variable.
hace 9 años
touky
d8efedf4d7
sdl input tweak
sdl integration now supports OS character input as per existing in sdl.
Use SetTextInputActive to turn it off/on
hace 9 años
Benjamin ‘Touky’ Huet
3b00a2e5ee
Added Joystick count
hace 10 años
Sam Hocevar
03c17fcae4
base: clean up and refactor containers.
The containers no longer force the user to use the ptrdiff_t type for
size information. For convenience, size() now always returns an int,
and the size_s() method offers a way to handle arrays with more than
2 billion elements. Internally, we still use ptrdiff_t, though.
Since so much code had to be changed, I took the opportunity to get
rid of capitalised accessors for classes that are lowercase.
hace 10 años
Benjamin ‘Touky’ Huet
3f167f2f1d
ImGui 1.37
MeshViewer first pass
hace 10 años
Benjamin ‘Touky’ Huet
f139a7e164
LolImGui integration 2nd pass: It now works perfectly (to the extent of the api)
SDL2: Mouse is back ! With correct focus support
SDL2: Added typing support with keyboard
ShaderBuilder: Refactored and simplified Shader block creation
Several warning removal
Fixed Image::Copy
hace 10 años
Sam Hocevar
94f4df0c47
input: fix compilation warning.
hace 11 años
Benjamin ‘Touky’ Huet
1756726fca
Added some shit in controller and text
hace 11 años
Sam Hocevar
9ba22b8a58
input: prepare a small API for direct text input.
hace 11 años
Sam Hocevar
0cc1dd69ba
input: use scancodes instead of ASCII values when using SDL v2.
hace 11 años
Sam Hocevar
d373081b80
build: use #pragma once instead of header guards because 1) fuck the dinosaurs,
and 2) fuck the Visual Studio compiler that crashes when confused.
hace 11 años
Sam Hocevar
cd988786b9
build: reorganise includes so that we can use precompiled headers later.
hace 11 años
Sam Hocevar
7dba2ff3a1
base: use ptrdiff_t for array and string sizes and some other things.
hace 11 años
Sam Hocevar
e49353f457
base: use variadic templates to remove 300+ lines of redundant code.
hace 11 años
Sam Hocevar
fe665f85b4
base: strip core.h from its contents and put it in public/private headers.
hace 11 años
Sam Hocevar
3862ad59dc
base: going on a lowercase rampage; today’s victim: Array.
hace 11 años
Benjamin ‘Touky’ Huet
b98584957c
Added Mouse scroll as axis.
hace 11 años
Benlitz
e1241fd974
input: removed static keyword for global input names
hace 12 años
Benjamin ‘Touky’ Huet
747da72c44
Input : Small refactor, for clarity, easiness and beautification.
Constants : Added minus one.
hace 12 años
Benlitz
339f05db73
input: binding multiple key/axis to the same controller action
hace 12 años
Benlitz
9b7641df07
input: added a GetAvailableDevices function to retrieve device names.
hace 12 años
Benlitz
8a657ea287
input: Removed previous input system
hace 12 años
Sam Hocevar
399a172425
build: fix a few compilation issues with input v2.
hace 12 años
Benlitz
a7aac24c46
Completely reworked input system. Unified device interface, button, axis and cursor support, controller and binding system, mouse capture. Tutorial 07_input provided. Require to compile lolcore with LOL_INPUT_V2 to be activated (also needed app-side before including core.h)
hace 12 años
Sam Hocevar
6be31bba32
input: make keyboard state platform-independent.
hace 12 años
Sam Hocevar
c1428fc1f9
input: support up to 32 mouse buttons.
hace 12 años
Sam Hocevar
aeb1b68377
mrpigeon: can now play using spacebar.
hace 13 años
Benjamin ‘Touky’ Huet
c7219ff1dd
New year copyright update.
hace 13 años
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
hace 13 años
Sam Hocevar
b438a94642
input: add the Keyboard abstraction object type.
hace 13 años
Sam Hocevar
956657e86f
input: some refactoring in the action bindings.
hace 13 años
Lolbot
23807ea88e
fixed 23 files out of 277:
- fixed 1270 CR characters
- fixed 56 trailing spaces
- fixed 5085 tabs
hace 13 años
Sam Hocevar
5f94ceb454
input: switch all key names to camel case, like our other enums.
hace 13 años
Benjamin ‘Touky’ Huet
284891f200
Fixed Entity::TickGame log flood.
Added BulletCharacterController.cpp & BulletCharacterController.h stubs.
hace 13 años