Skip to content

Commit d1e86dd

Browse files
committed
Moved e_event_type and e_controller_component
1 parent 688da4d commit d1e86dd

6 files changed

Lines changed: 70 additions & 66 deletions

File tree

game/game.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ copy /b $(ProjectDir)source\config\version.cpp +,, $(ProjectDir)source\config\ve
305305
<ClCompile Include="source\interface\gui_selected_items_saved_film.cpp" />
306306
<ClCompile Include="source\interface\gui_selected_items_saved_screenshot.cpp" />
307307
<ClCompile Include="source\interface\overhead_map.cpp" />
308+
<ClCompile Include="source\interface\user_interface_data.cpp" />
308309
<ClCompile Include="source\interface\user_interface_main_menu_music.cpp" />
309310
<ClCompile Include="source\interface\user_interface_mouse.cpp" />
310311
<ClCompile Include="source\interface\user_interface_player_model_camera.cpp" />

game/game.vcxproj.filters

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1959,6 +1959,9 @@
19591959
<ClCompile Include="source\interface\c_gui_model_widget.cpp">
19601960
<Filter>Source Files</Filter>
19611961
</ClCompile>
1962+
<ClCompile Include="source\interface\user_interface_data.cpp">
1963+
<Filter>Source Files</Filter>
1964+
</ClCompile>
19621965
</ItemGroup>
19631966
<ItemGroup>
19641967
<ClInclude Include="source\camera\camera.hpp">

game/source/_force_includes/_force_included_enums.hpp

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5242,3 +5242,67 @@ enum e_gui_location
52425242
k_gui_location_count,
52435243
};
52445244

5245+
enum e_event_type
5246+
{
5247+
_event_type_none = 0,
5248+
_event_type_tab_up,
5249+
_event_type_tab_left,
5250+
_event_type_tab_down,
5251+
_event_type_tab_right,
5252+
_event_type_alt_stick_up,
5253+
_event_type_alt_stick_left,
5254+
_event_type_alt_stick_down,
5255+
_event_type_alt_stick_right,
5256+
_event_type_alt_tab_up,
5257+
_event_type_alt_tab_left,
5258+
_event_type_alt_tab_down,
5259+
_event_type_alt_tab_right,
5260+
_event_type_button_press,
5261+
5262+
k_event_type_count
5263+
};
5264+
5265+
enum e_controller_component
5266+
{
5267+
_controller_component_button_a = 0,
5268+
_controller_component_button_b,
5269+
_controller_component_button_x,
5270+
_controller_component_button_y,
5271+
5272+
_controller_component_button_left_shoulder,
5273+
_controller_component_button_right_shoulder,
5274+
5275+
_controller_component_button_left_trigger,
5276+
_controller_component_button_right_trigger,
5277+
5278+
_controller_component_button_dpad_up,
5279+
_controller_component_button_dpad_down,
5280+
_controller_component_button_dpad_left,
5281+
_controller_component_button_dpad_right,
5282+
5283+
_controller_component_button_start,
5284+
_controller_component_button_back,
5285+
5286+
_controller_component_button_left_thumb,
5287+
_controller_component_button_right_thumb,
5288+
5289+
_controller_component_stick_left_thumb,
5290+
_controller_component_stick_right_thumb,
5291+
5292+
_controller_component_left_stick_left,
5293+
_controller_component_left_stick_right,
5294+
_controller_component_left_stick_up,
5295+
_controller_component_left_stick_down,
5296+
5297+
_controller_component_right_stick_left,
5298+
_controller_component_right_stick_right,
5299+
_controller_component_right_stick_up,
5300+
_controller_component_right_stick_down,
5301+
5302+
_controller_component_left_stick_x,
5303+
_controller_component_left_stick_y,
5304+
5305+
_controller_component_right_stick_x,
5306+
_controller_component_right_stick_y,
5307+
};
5308+

game/source/interface/gui_roster_data.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#pragma once
22

33
#include "cseries/cseries.hpp"
4+
#include "game/players.hpp"
45
#include "interface/user_interface_data.hpp"
56

67
struct c_gui_roster_data :

game/source/interface/user_interface_controller.hpp

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -3,71 +3,6 @@
33
#include "interface/c_controller.hpp"
44
#include "networking/transport/transport_security.hpp"
55

6-
enum e_event_type
7-
{
8-
_event_type_none = 0,
9-
_event_type_tab_up,
10-
_event_type_tab_left,
11-
_event_type_tab_down,
12-
_event_type_tab_right,
13-
_event_type_alt_stick_up,
14-
_event_type_alt_stick_left,
15-
_event_type_alt_stick_down,
16-
_event_type_alt_stick_right,
17-
_event_type_alt_tab_up,
18-
_event_type_alt_tab_left,
19-
_event_type_alt_tab_down,
20-
_event_type_alt_tab_right,
21-
_event_type_button_press,
22-
23-
k_event_type_count
24-
};
25-
26-
enum e_controller_component
27-
{
28-
_controller_component_button_a = 0,
29-
_controller_component_button_b,
30-
_controller_component_button_x,
31-
_controller_component_button_y,
32-
33-
_controller_component_button_left_shoulder,
34-
_controller_component_button_right_shoulder,
35-
36-
_controller_component_button_left_trigger,
37-
_controller_component_button_right_trigger,
38-
39-
_controller_component_button_dpad_up,
40-
_controller_component_button_dpad_down,
41-
_controller_component_button_dpad_left,
42-
_controller_component_button_dpad_right,
43-
44-
_controller_component_button_start,
45-
_controller_component_button_back,
46-
47-
_controller_component_button_left_thumb,
48-
_controller_component_button_right_thumb,
49-
50-
_controller_component_any_stick,
51-
52-
_controller_component_unknown17,
53-
54-
_controller_component_left_stick_left,
55-
_controller_component_left_stick_right,
56-
_controller_component_left_stick_up,
57-
_controller_component_left_stick_down,
58-
59-
_controller_component_right_stick_left,
60-
_controller_component_right_stick_right,
61-
_controller_component_right_stick_up,
62-
_controller_component_right_stick_down,
63-
64-
_controller_component_left_stick_x,
65-
_controller_component_left_stick_y,
66-
67-
_controller_component_right_stick_x,
68-
_controller_component_right_stick_y,
69-
};
70-
716
struct s_event_record
727
{
738
e_event_type type;

game/source/interface/user_interface_mouse.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ bool user_interface_mouse_handle_screen_widget(c_gui_screen_widget* screen_widge
408408
if (int16 hscroll_ammount = user_interface_mouse_globals.mouse_hwheel_delta / -input_globals.mouse_wheel_delta)
409409
{
410410
point2d point = { .x = hscroll_ammount > 0 ? 0x7FFF : -0x7FFF };
411-
event_manager_tab(0, user_interface_mouse_globals.controller_index, &point, user_interface_milliseconds(), _controller_component_any_stick);
411+
event_manager_tab(0, user_interface_mouse_globals.controller_index, &point, user_interface_milliseconds(), _controller_component_stick_left_thumb);
412412
}
413413
}
414414
}

0 commit comments

Comments
 (0)