mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-22 09:37:09 +00:00
Keyboard and mouse controls will now work if you use the kbMouseSupport parameter in the config for Libretro cores. Be aware that capturing mouse and keyboard controls properly is only possible in fullscreen mode. Note: In the case of DOSBox, a virtual filesystem handler is not yet implemented, thus each game state will be shared between all rooms (DOS game instances) of CloudRetro.
35 lines
992 B
Go
35 lines
992 B
Go
package api
|
|
|
|
type (
|
|
ChangePlayerUserRequest int
|
|
CheckLatencyUserResponse []string
|
|
CheckLatencyUserRequest map[string]int64
|
|
GameStartUserRequest struct {
|
|
GameName string `json:"game_name"`
|
|
RoomId string `json:"room_id"`
|
|
Record bool `json:"record,omitempty"`
|
|
RecordUser string `json:"record_user,omitempty"`
|
|
PlayerIndex int `json:"player_index"`
|
|
}
|
|
GameStartUserResponse struct {
|
|
RoomId string `json:"roomId"`
|
|
Av *AppVideoInfo `json:"av"`
|
|
KbMouse bool `json:"kb_mouse"`
|
|
}
|
|
IceServer struct {
|
|
Urls string `json:"urls,omitempty"`
|
|
Username string `json:"username,omitempty"`
|
|
Credential string `json:"credential,omitempty"`
|
|
}
|
|
InitSessionUserResponse struct {
|
|
Ice []IceServer `json:"ice"`
|
|
Games []AppMeta `json:"games"`
|
|
Wid string `json:"wid"`
|
|
}
|
|
AppMeta struct {
|
|
Title string `json:"title"`
|
|
System string `json:"system"`
|
|
}
|
|
WebrtcAnswerUserRequest string
|
|
WebrtcUserIceCandidate string
|
|
)
|