Sam Hocevar
980ff37a58
Get rid of numerous uses of lol::String.
7 лет назад
touky
fd3a6a8ae6
imgui + renderer + mouse scroll
Added scissor mode in renderer
Added scissor support in imGui
Mouse scroll sensivity tweak
8 лет назад
touky
d8efedf4d7
sdl input tweak
sdl integration now supports OS character input as per existing in sdl.
Use SetTextInputActive to turn it off/on
8 лет назад
Benjamin ‘Touky’ Huet
3b00a2e5ee
Added Joystick count
9 лет назад
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.
9 лет назад
Benjamin ‘Touky’ Huet
3f167f2f1d
ImGui 1.37
MeshViewer first pass
10 лет назад
Benjamin ‘Touky’ Huet
f67da65818
First pass of EasyMesh split & refactor
Big FAT pass on windows-warning. It is better now.
10 лет назад
Benjamin ‘Touky’ Huet
1756726fca
Added some shit in controller and text
10 лет назад
Sam Hocevar
9ba22b8a58
input: prepare a small API for direct text input.
10 лет назад
Sam Hocevar
4374db93c4
input: use key scancodes everywhere, but add a small fallback for SDL1.2.
10 лет назад
Sam Hocevar
0cc1dd69ba
input: use scancodes instead of ASCII values when using SDL v2.
10 лет назад
Sam Hocevar
cd988786b9
build: reorganise includes so that we can use precompiled headers later.
10 лет назад
Sam Hocevar
fe665f85b4
base: strip core.h from its contents and put it in public/private headers.
10 лет назад
Sam Hocevar
3862ad59dc
base: going on a lowercase rampage; today’s victim: Array.
10 лет назад
Benjamin ‘Touky’ Huet
3d4b3d53c3
Added bunch of stuff on threads and images.
10 лет назад
Benjamin ‘Touky’ Huet
b98584957c
Added Mouse scroll as axis.
10 лет назад
Benjamin ‘Touky’ Huet
747da72c44
Input : Small refactor, for clarity, easiness and beautification.
Constants : Added minus one.
11 лет назад
Sam Hocevar
5f3ad5cc15
math: add constant vectors vec2::zero, vec2::axis_x, etc.
11 лет назад
Benlitz
c1da4619f7
input: renamed xinput keys to something more human readable (such as A or DPadLeft) and inverted mouse Y axis to match joystick axis (negatives being up)
core: calling InitGame() at the first tick of an entity. InitDraw is still uncalled yet
fixed mrpigeon and orbital accordingly
11 лет назад
Benlitz
9b7641df07
input: added a GetAvailableDevices function to retrieve device names.
11 лет назад
Benlitz
b6b490578e
copy-paste failure corrected.
11 лет назад
Benlitz
8a657ea287
input: Removed previous input system
11 лет назад
Sam Hocevar
399a172425
build: fix a few compilation issues with input v2.
11 лет назад
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)
11 лет назад
Sam Hocevar
6be31bba32
input: make keyboard state platform-independent.
12 лет назад
Sam Hocevar
c1428fc1f9
input: support up to 32 mouse buttons.
12 лет назад
Sam Hocevar
39a8c26fb5
base: start removing occurrences of NULL on our long journey to nullptr.
12 лет назад
Sam Hocevar
1e973c81bd
build: add SDL detection code in new file lol-sdl.m4. The SDL2 version is
disabled until the engine code itself is ported to SDL2.
12 лет назад
Benjamin ‘Touky’ Huet
c7219ff1dd
New year copyright update.
12 лет назад
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
12 лет назад
Sam Hocevar
439298ee5e
misc: very minor tweaks here and there.
12 лет назад
Sam Hocevar
956657e86f
input: some refactoring in the action bindings.
12 лет назад
Lolbot
23807ea88e
fixed 23 files out of 277:
- fixed 1270 CR characters
- fixed 56 trailing spaces
- fixed 5085 tabs
12 лет назад
Sam Hocevar
df6134e648
input: fix minor PS3 compilation error.
12 лет назад
Sam Hocevar
5f94ceb454
input: switch all key names to camel case, like our other enums.
12 лет назад
Benjamin ‘Touky’ Huet
1e48c827a4
Input now works correctly
12 лет назад
Benjamin ‘Touky’ Huet
08a54c1a2a
Added correct implementation of Action layer for Inputs.
Useage :
- Link action to key :
Input::LinkActionToKey(ACTION_TYPE Action, struct Key Button);
Input::UnlinkAction(ACTION_TYPE Action);
- Query action directly :
Input::GetStatus(ACTION_TYPE Action);
Input::WasPressed(ACTION_TYPE Action);
Input::WasReleased(ACTION_TYPE Action);
Also works with raw button, but not advised :
Input::GetStatus(Key Button);
Input::WasPressed(Key Button);
Input::WasReleased(Key Button);
12 лет назад
Benjamin ‘Touky’ Huet
8838ef06b6
Added InputTracker test initPhysTest
12 лет назад
Benjamin ‘Touky’ Huet
fcd46a2969
Build FIX .... again.
12 лет назад
Benjamin ‘Touky’ Huet
075be12a77
Added a skeleton for Input Tracking & base idea for Touch/untouch mechanics.
12 лет назад
Sam Hocevar
0b971d7926
input: allow to easily track more than one input stick.
12 лет назад
Sam Hocevar
7a776e72f5
core: fix the X360 build by re-adding macro barriers I removed.
12 лет назад
Sam Hocevar
9b5880936c
build: tweak everything to allow building with SDL on the Raspberry Pi.
12 лет назад
Sam Hocevar
28728814cc
core: replace usage of sin() or std::sin() with lol::sin() where appropriate.
12 лет назад
Sam Hocevar
58b3c20b86
input: add core joystick support and bind the SDL input to that.
13 лет назад
Benjamin ‘Touky’ Huet
9c27915507
Added GetButtonState() in Input class.
Added Escape button in to quit Orbital.
Added Camera control with some little damping sweetness in Camera logic in main Tick.
First Commit \o/
13 лет назад
Sam Hocevar
b49ba4ef56
core: prefix some member variables with m_ for clarity.
13 лет назад
Sam Hocevar
57df2357de
math: try to implement the magic getter/setter pattern. BREAKS BUILD.
13 лет назад
Sam Hocevar
d38a79ee3d
math: move most vector and matrix member functions to global functions.
13 лет назад
Sam Hocevar
7e337a0607
ps3: compilation fixes for the PS3.
13 лет назад