mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 02:54:04 +09:00
mouse buttons now configurable
Former-commit-id: 789b34a0a80553afc7fa7f563ffa33350310ac21 Former-commit-id: 8b3687ee15aa53fb6decb8480ebdf6897b5cce61
This commit is contained in:
@@ -6,6 +6,8 @@ import com.google.gson.JsonObject
|
||||
import net.torvald.terrarum.gamecontroller.Key
|
||||
|
||||
/**
|
||||
* Keys must be all lowercase
|
||||
*
|
||||
* Created by minjaesong on 16-03-12.
|
||||
*/
|
||||
object DefaultConfig {
|
||||
@@ -31,10 +33,10 @@ object DefaultConfig {
|
||||
jsonObject.addProperty("joypadldown", 6)
|
||||
jsonObject.addProperty("joypadrdown", 7) // logitech indices
|
||||
|
||||
jsonObject.addProperty("joypadlstickx", 0)
|
||||
jsonObject.addProperty("joypadlsticky", 1)
|
||||
jsonObject.addProperty("joypadrstickx", 2)
|
||||
jsonObject.addProperty("joypadrsticky", 3) // logitech indices
|
||||
jsonObject.addProperty("joypadlstickx", 3)
|
||||
jsonObject.addProperty("joypadlsticky", 2)
|
||||
jsonObject.addProperty("joypadrstickx", 1)
|
||||
jsonObject.addProperty("joypadrsticky", 0) // logitech indices
|
||||
|
||||
jsonObject.addProperty("joypadlabelstyle", "generic") // "nwii", "logitech", "sonyps", "msxb360", "generic"
|
||||
|
||||
@@ -64,6 +66,10 @@ object DefaultConfig {
|
||||
val keyquickbars = JsonArray(); for (i in 2..11) keyquickbars.add(i) // NUM_1 to NUM_0
|
||||
jsonObject.add("keyquickbars", keyquickbars)
|
||||
|
||||
jsonObject.addProperty("mouseprimary", 0) // left mouse
|
||||
jsonObject.addProperty("mousesecondary", 1) // right mouse
|
||||
|
||||
|
||||
jsonObject.addProperty("pcgamepadenv", "console")
|
||||
|
||||
jsonObject.addProperty("safetywarning", true)
|
||||
|
||||
Reference in New Issue
Block a user