forked from saidsay-so/VitaPad
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'big_module_update' into dev
- Loading branch information
Showing
28 changed files
with
602 additions
and
149 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ struct ButtonsData | |
square: bool; | ||
vol_up: bool; | ||
vol_down: bool; | ||
ps: bool; | ||
} | ||
|
||
struct Vector3 | ||
|
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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#ifndef __CTRL_H__ | ||
#define __CTRL_H__ | ||
|
||
#include <netprotocol_generated.h> | ||
|
||
#include "events.hpp" | ||
|
||
void get_ctrl(SceCtrlData *pad, SceMotionState *motion_data, SceTouchData *touch_data_front, | ||
SceTouchData *touch_data_back); | ||
void ctrl_as_netprotocol(SceCtrlData *pad, SceMotionState *motion_data, | ||
SceTouchData *touch_data_front, SceTouchData *touch_data_back, | ||
flatbuffers::FlatBufferBuilder &builder, int battery_level); | ||
|
||
#endif // __CTRL_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include <vita2d.h> | ||
|
||
#include "events.hpp" | ||
|
||
#ifndef DRAW_HELPER_HPP | ||
#define DRAW_HELPER_HPP | ||
|
||
extern vita2d_pgf *debug_font; | ||
extern uint32_t need_color; | ||
extern uint32_t common_color; | ||
extern uint32_t error_color; | ||
extern uint32_t done_color; | ||
|
||
void draw_rectangle_outline(float x, float y, float width, float height, uint32_t color); | ||
void draw_old_module(); | ||
void draw_start_mode(bool connected_to_network, bool pc_connect_state, char *vita_ip, | ||
SharedData *shared_data); | ||
void draw_pad_mode(bool connected_to_network, bool pc_connect_state, char *vita_ip, | ||
SharedData *shared_data); | ||
|
||
#endif // DRAW_HELPER_HPP |
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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
#ifndef NET_HPP | ||
#define NET_HPP | ||
|
||
#include <psp2/net/net.h> | ||
#include <psp2/net/netctl.h> | ||
|
||
#include <atomic> | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include <psp2/kernel/threadmgr.h> | ||
|
||
#ifndef THREAD_HELPER_HPP | ||
#define THREAD_HELPER_HPP | ||
|
||
struct ThreadParams { | ||
const char *name; | ||
SceKernelThreadEntry entry; | ||
int initPriority; | ||
SceSize stackSize; | ||
SceUInt attr; | ||
int cpuAffinityMask; | ||
const SceKernelThreadOptParam *option; | ||
void *threadArgs; | ||
SceSize threadArgSize; | ||
}; | ||
|
||
SceUID create_and_start_thread(const ThreadParams ¶ms); | ||
int stop_thread(SceUID thread_uid, SceUInt timeout); | ||
|
||
#endif // THREAD_HELPER_HPP |
Oops, something went wrong.